cox dhcp to ip masquerade
Digital Wokan
plug-discuss@lists.plug.phoenix.az.us
Tue, 12 Nov 2002 11:29:55 -0500
Agreed,
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
The second echo would be useful if Cox likes to mess around with your IP
a lot. (Not likely, but our fellow phone modem users out there might
read this and need it for their setups.)
Also, for the 2.4.x kernel using IPTables...
iptables -A POSTROUTING -t nat -s 192.168.0.0/255.255.255.0 -o eth0 -j
MASQUERADE
technomage wrote, On 11/11/2002 1:45 PM:
> actually,
> if you do it right, you don't need to assign a gateway for eth1. just use an
> ech statement that allows ipv4_forwarding on.
>
> thats what I use without truble at all and saves on the gatway line entries
>
> Technomage
>
> On Monday 11 November 2002 04:38 am, you wrote:
>
>> What distro are you running?
>>
>> I have cox dhcp and have ipmasq running off a firewall that gives the
>>boxes behind the firewall internet access. I am running RH 7.3
>>
>> eth0 is set for cox dhcp, eth1 is set for 192.168.0.1, the boxes
>>behind this are set to 192.168.0.x and 192.168.0.x where x is anything
>>from 192.168.0.2 to 192.168.0.254.
>>
>> The gateway for all machines behind the firewall is 192.168.0.1
>>
>> The gateway for eth1 is cox dhcp ipaddress, everytime cox changes
>>your ip address, you have to change the gateway for eth1 to the new
>>value.
>>
>> I have to say that it took me a little time to get this set up running
>>correctly, now that it is, all I have to do to add another pc is
>>configure the new machine and that's it.
>>
>> Hope this helps --- I'll dig around and look where I got the firewall
>>scripts from, they work just great, and let you know.
>>
>> FrankM
>>
>>On Sat, 2002-11-09 at 17:28, Unixprgrmr@aol.com wrote:
>>
>>>How do I go from cox dhcp to ip masquerade for fixed ips?
>>>
>>>I already have a system w/2 nic cards....
>>>
>>>Thanks!
>>>Lynn