Within Guest2 - the router - Yes
misvpn:~ # sudo cat /proc/sys/net/ipv4/ip_forward
1


On Thu, Jun 7, 2012 at 9:55 AM, Rich Smrcina <[email protected]>wrote:

> Is ip_forwarding turned on?
>
>
> On 06/07/2012 08:43 AM, Mark Pace wrote:
>
>> 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.
>>
>>
>
> --
> Rich Smrcina
> Velocity Software, Inc.
> http://www.velocitysoftware.**com <http://www.velocitysoftware.com>
>
> ------------------------------**------------------------------**----------
> 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<http://www.marist.edu/htbin/wlvindex?LINUX-390>
> ------------------------------**------------------------------**----------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>



-- 
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/

Reply via email to