[Tfug] NAT question

erich erich1 at copper.net
Thu Feb 2 08:52:58 MST 2006


No,
    It should be ppp0, not eth0. I got it working last nite. It turns
out that:
                1) I had the wrong gateway address on the to-be-MASQed
                    machine, (It has to be the router's eth0 address)
                2) I had to install a utility on the router that mediates
                     DNS. Namely dnsmasq. This runs as a daemaon
                     activated at bootup

    Right now I have implemented DHCP, but I want to see if I can
live without it because lot of my machines can't be upgraded to use
it. They are legacy.

                                                                                         
Erich

felipon wrote:

>im not good in english, but why the default gw its from eth0 but the output
>on the iptables rule its for ppp0, maybe should be something like
>
>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
>good luck
>
>On 1/31/06, erich <erich1 at copper.net> wrote:
>  
>
>>Yes,
>>     It is now = 1
>>
>>                                                                  Erich
>>Nick Lopez wrote:
>>
>>    
>>
>>>On Mon, Jan 30, 2006 at 10:09:07PM -0700, erich wrote:
>>>
>>>
>>>      
>>>
>>>> My router has the following nat rule:
>>>>
>>>>iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>>>>
>>>>
>>>>
>>>>        
>>>>
>>> Did you flip the master forwarding switch? (echo 1 >
>>>/proc/sys/net/ipv4/ip_forward)
>>>
>>> - Nick Lopez
>>>   spamtrap at glowingmonkey.org
>>>
>>> -- Randomly selected signature --
>>>Knowledge is Power. Power Corrupts. Study Hard. Be Evil.
>>>_______________________________________________
>>>tfug mailing list
>>>tfug at tfug.org
>>>http://www.tfug.org/mailman/listinfo/tfug
>>>
>>>
>>>
>>>      
>>>
>>_______________________________________________
>>tfug mailing list
>>tfug at tfug.org
>>http://www.tfug.org/mailman/listinfo/tfug
>>
>>    
>>
>_______________________________________________
>tfug mailing list
>tfug at tfug.org
>http://www.tfug.org/mailman/listinfo/tfug
>
>  
>



More information about the tfug mailing list