Jeff Abrahamson on 14 Feb 2006 23:06:13 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] setting up a server: comcast, squid, port 80/8080


On Tue, Feb 14, 2006 at 05:58:23PM -0500, Christopher M. Jones wrote:
>   [24 lines, 196 words, 1279 characters]  Top characters: et_onisa
> 
> Over the past week I've been experimenting with Linux and setting up a
> home network. I started out by setting up a firewall, using ip
> forwarding to do NAT. Then I put up squid and dansguardian to do content
> filtering. Then I started playing with DNS services on the same machine.
> Now I've discovered dyndns and I'd like to have a web server going. 
> 
> Everything works fine until I try to get to my site from a machine
> outside of the lan. I guess the short question is: does Comcast block
> port 80? Is that why my connection is refused outside the lan? Can I use
> port 8080 to get around this? How do I set things up on my end so that
> apache listens on 8080? Part of my confusion is that I'm not sure how
> apache, squid, and dansguardian work together. So should I really be
> worrying about what apache listens to or should I be worried about my
> forwarding rules? Or should I be worried about one of the other
> services?

I can't answer about Comcast (but probably "yes").  However, there's a
very handy program called netcat (nc) that lets you connect and listen
on tcp and udp ports of your choosing.  The result is that you can say
"nc -l -p 8080" and then try connecting from somewhere else to your IP
at 8080.  You can connect using telnet ("telnet your-IP 8080") or nc
("nc your-IP 8080").  Anything you send from the remote will show up
on your terminal window that's running nc -l.  This is convenient for
testing things like this.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>    +1 215/837-2287
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug