Re: Netcat through Squid HTTP Proxy

From: James Kearney (jamesjohnkearney_at_gmail.com)
Date: 04/19/05

  • Next message: Todd Towles: "RE: Netcat through Squid HTTP Proxy"
    Date: Tue, 19 Apr 2005 16:19:52 +0100
    To: pen-test@securityfocus.com
    
    

    Henderson, Dennis K. wrote:

    >It seems like he was looking for information on how to prevent this.
    >
    >You can configure squid to only allow tunneling on certain ports like
    >443 and 80. You'll have to figure out what your safe ports are to
    >prevent legitimate traffic from being impacted.
    >
    >I usually make sure the usual ports like ssh, telnet, irc are not
    >allowed.
    >
    >Cheers
    >
    >Dennis
    >
    >
    >

    although of course, they may just have the sshd running on 443... or be
    using a httptunnel client and server etc etc... stopping someone getting
    out when they are already inside is v difficult - what if they tunnel
    over dns/write a custom server and client over port 80 etc?
    I would think that generally if the individual knows enough to try
    tunneling ssh over https, then they probably can put an ssh server on
    443, or using some transport mechanism over http.

    Of course thats not to say that you should not block the connect options
    for ssh/imap/whatever... but don't assume this will stop anyone getting out.

    maybe you could have a tcpdump dumping the open and close connections
    for https connect on port 443, and record the amount of usuage/time it
    is used, and it may indicate someone using a shell through the https
    proxy or something like that?

    - jk


  • Next message: Todd Towles: "RE: Netcat through Squid HTTP Proxy"

    Relevant Pages

    • Re: RWW with no https
      ... SBS's ports. ... two are unrelated systems, i.e., SBS for one domain, Kerio for another. ... Or dump Kerio Mail Server since you have the same capabilities in Exchange ... I can not use https. ...
      (microsoft.public.windows.server.sbs)
    • Re: RWW with no https
      ... SBS's ports. ... two are unrelated systems, i.e., SBS for one domain, Kerio for another. ... Or dump Kerio Mail Server since you have the same capabilities in Exchange ... I can not use https. ...
      (microsoft.public.windows.server.sbs)
    • Re: OWA in DMZ
      ... But I guess the easiest and relatively secure method is setting up a seperate Exchange server in the DMZ in Front-End mode. ... And configure the Firewall to allow traffic on certain ports between this server and the private network, since that's where the back-end server is located with the actual mailboxes. ... When you have this Front-End server in place with OWA you can also use this same server for Mobile Access, and RCP over HTTPS, which you will have to enable on both servers and it involves more TCP ports. ...
      (microsoft.public.exchange.admin)
    • more SSL ports
      ... non-default ports. ... I have not heard that is required for Web Publishing ... Internal web server will work on ... http (not https). ...
      (microsoft.public.isa)
    • Re: Connecting to Linux machine remotely
      ... > need you can forward tcp ports through ssh. ... > By tunneling whatever ports are required for specific tasks you can ... For example I can ssh to our company smtp server and forward ports ... > connected to factory LAN computer. ...
      (comp.os.linux.networking)