Hi,
Thanks for the replies.
This post should have gone to a routing list but I did get some replies
both on and off list so I thought I'd reply via the list and end this
thread.
As this is an abosolute basic routing query the answer is absolutely simple.
The goal is to have 2 private networks ( 2 NICs ) routed out on network
( 1 NIC )
I think the best answer is by example:
[ 1st network ]
ifconfig eth0 192.168.2.7
route add default gw 192.168.2.1
[ 2nd network ]
ifconfig eth1 192.168.3.7
# ENABLE FORWARDING / NAT / MASQUERADING
echo "1" > /proc/sys/net/ipv4/ip_forward
# MASQUERADING / NAT
# postrouting rule (NAT)
iptables --table nat --append POSTROUTING -o eth0 -j MASQUERADE
# enable ftp NAT
modprobe ip_nat_ftp
This work just fine.
The next task will be to set the default policy to DROP. It is currently
set to ACCEPT.
Sorry to bother you with such simple and wrong subject posts.
Many thanks for the replies.
Regards Rudi
_______________________________________________
firewall-wizards mailing list
firewall-wizards_at_honor.icsalabs.com
http://honor.icsalabs.com/mailman/listinfo/firewall-wizards
Received on Dec 05 2004