Click to See Complete Forum and Search --> : ipchains to iptables


frew k panik
03-09-2002, 02:09 AM
OK I am in the middle of a HOWTO that apperently hasn't been updated in a while and I was wondering how i could do the equivalent of these commands with kernel version 2.4.*

# 1) Flush the rule tables.
/sbin/ipchains -F input
/sbin/ipchains -F forward
/sbin/ipchains -F output
# 2) Set the MASQ timings and allow packets in for DHCP configuration.
/sbin/ipchains -M -S 7200 10 60
/sbin/ipchains -A input -j ACCEPT -i eth0 -s 0/0 68 -d 0/0 67 -p udp
# 3) Deny all forwarding packets except those from local network.
# Masquerage those.
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

X_console
03-09-2002, 02:34 AM
Please don't post the same question in multiple forums.