RE: centos5 iptables expert needed

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







/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0
    -d 192.168.0.1 --destination-port 80 -j DNAT --to 192.168.0.2:80

/sbin/iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.2 --destination-port 80 -j ACCEPT



> From: dmehler26@xxxxxxxxxx
> To: centos@xxxxxxxxxx
> Date: Tue, 28 Aug 2007 12:27:08 -0400
> Subject: centos5 iptables expert needed
>
> Hello,
> I'm setting up a centos5 router for a friend. It will direct traffic to
> an internal webserver, already in place, as well as run squid proxy. It
> should do nat and have a firewall with iptables. I've set up routers before
> for this purpose but always of the bsd type and using their firewalls. I
> understand the concepts, nat, packet filtering, etc. but i'm not getting
> iptales at all. If anyone is an expert on this i'd appreciate hearing from
> you. I have what are probably basic questions, i've read the docs, but i am
> lost.
> Thanks.
> Dave.
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos


Get the new Windows Live Messenger! Try it!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux