Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
"Borders-Wing, Heath Justin (UMC-Student)" wrote:
>
> I'm trying to distribute my cable connection to the computers on my LAN...
> ... I guess the short version is, how exactly do I get ipfwadm working?
I never used ipfwadm, and I don't know if Mandrake 8 even comes with it.
But I didn't need it to set up IP forwarding. From yoda's rc.firewall,
the most important parts you really need are (just to get it going):
# CRITICAL: Enable IP forwarding (disabled by default)
echo "1" > /proc/sys/net/ipv4/ip_forward
# Enable simple IP forwarding and Masquerading
/sbin/ipchains -P forward DENY
# Denies all packets, except those from your internal network
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
where 192.168.1.0 is your internal network (netmask 255.255.255.0
assumed).
To enable IP forwarding permanently, edit /etc/sysctl.conf to include
net.ipv4.ip_forward=1
net.ipv4.ip_always_defrag = 1 (needed for masquerading)
Good luck,
--
Misha
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/