Click to See Complete Forum and Search --> : ip masquerade problem


zerocool_010
02-03-2001, 12:43 PM
i'm setting up a server under redhat 6.2, i have cable modem, and i'm trying to set up ip masquerading. i have connectivity between the server and the boxes that are connected to it, but i can't figure out exactly how to get it masquerading. i've already looked at the latest documentation for it, and according to that i don't need to change my kernel. what do i need to do?

Delta_z
02-03-2001, 03:08 PM
If you have IPchains installed and you kernel is compiled for networking then you need to add the lines.

"echo 1 > /proc/sys/net/ipv4/ip_forward"
"ipchains -P forward DENY"
"ipchains -A forward -j MASQ -s yourinternalhostipnumberhere -d 0/0"

to the /etc/rc.d/rc.local file or some kind of firewall script file
:) ;)

eejit
02-03-2001, 03:16 PM
In the IP Masquerade HOWTO section 3.3, "Configuring IP Forwarding policies", there's a script for your /etc/rc.d/rc.firewall file.

The GATEWAY mini HOWTO will supply more stuff.

Section 3.1 of the IPCHAINS-HOWTO will set you up without the firewall part.

This is what worked for me with Mandrake 7.1
Just about everything else had stuff that didn't work.

Fandelem
02-03-2001, 10:35 PM
go get pmfirewall, (it masq's and) it will save you tons of headaches ;o) http://www.fandelem.com/nhf-5.html explains how to set it up (fyi)

~kyle