I can't figure out how to handle this: My external interface,eth0, has two addresses: (all addresses fake.) 2.2.2.5 - The true public address as seen by the Internet. 3.3.3.50 - An address on an intranet lan The default gateway is 2.2.2.1, the Cisco router ->T1->ISP The gateway for the intranet is 3.3.3.1 On the intranet are many routers and many subnets. My internal interface, eth1, has a subnet of clients, 192.168.1.0/24, who want access to the internet and the intranet. They need to be NAT'ed. SO: to nat internet access: iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j SNAT --to-source 2.2.2.5 But how do I NAT the traffic to the intranet so that it will have a source of 3.3.3.50? I realize I could match on destination nets, but there are too many of them. I realize I could put in another ethernet card for the intranet. But is there a way to solve it configured as is? Any way to match on gateway? Thanx. ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
