Hi:
I think I have my 2.4.5 kernel built right, but I could not figure out
how to load the compatibility ipchains. So, I found a script using
iptables.
My local lan eth0 works fine, i can get onto the internet via my eth1
card, but the masq stuff doesn't work anymore.
Here is what worked before, on a 2.2 kernel:
--------------------
# MASQ timeouts
/sbin/ipchains -M -S 7200 10 160
# DHCP: For people who receive their external IP address from either DHCP or
/sbin/ipchains -A input -j ACCEPT -i eth1 -s 0/0 67 -d 0/0 68 -p udp
# Enable simple IP forwarding and Masquerading
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -i eth1 -s 10.1.1.0/24 -j MASQ
--------------------------------------------------------------
So, I got the new script and tried to use it, below is the essential
parts of it.
-------------------------------
echo " - Verifying that all kernel modules are ok"
/sbin/depmod -a
echo " - Enabling packet forwarding in the kernel"
echo "1" > /proc/sys/net/ipv4/ip_forward
# Dynamic IP users:
echo " - Enabling dynamic addressing measures"
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
# Enable simple IP forwarding and Masquerading
echo " - Setting the default FORWARD policy to 'DROP'"
echo " - Enabling SNAT (IPMASQ) functionality on eth0"
$IPTABLES -P FORWARD DROP
$IPTABLES -t nat -A POSTROUTING -o eth1 -s 10.1.1.0/24 -j MASQUERADE
-------------------------------------------
I changed eth0 to eth1 on the last line, was that right?
I added the -s 10.1.1.0/24 as a guess
on my part, based on what worked with ipchains.
But it still does not work.
Any help most appreciated.
Also, I am starting with red hat 7.0, downloaded the latest iptables,
got a 2.4.5 kernel, might there be something else I need to get. It's
too painful right now to upgrade to rh 7.1.
thanks
eric