I don't know why I am having such a hard time making linux be a router. I made it work years ago.
[ guest1 - eth0 - 172.16.1.2/24 - GW 172.16.1.1] . . [ vswitch - prirouter] . . [guest2 - eth1 - 172.16.1.1/24] [guest2 - eth0 - 199.xx.xx.xx/25 - GW - 199.xx.xx.1] . . [vswitch - nonrouter] Connected to OSA connected to the internet. Within guest2 I have turned on IP_FORWARD and added 2 IPTABLES rules # iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE # iptables --append FORWARD --in-interface eth1 -j ACCEPT I am obviously forgetting something, but it sure doesn't seem obvious to me. -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
