Its still not doing it.. I get no error's when running the firewall except for these
ones that I dont understand..
SIOCADDRT: File exists
SIOCADDRT: Invalid argument
To make Life a little easier though, here is the firewall..
#!/bin/sh
echo "1" > /proc/sys/net/ipv4/ip_forward
# echo "1" > /proc/sys/net/ipv4/icp_syncookies
/sbin/ifconfig eth0 192.168.100.1 netmask 255.255.255.0 up
/sbin/route add -net 192.168.100.0 netmask 255.255.255.0 eth0
/sbin/route add default gw 0.0.0.0 eth0
# Flush all rules:
/sbin/ipchains -F input
/sbin/ipchains -F output
/sbin/ipchains -F forward
echo "diablo"
# Allow Diablo through the net
/sbin/ipchains -A input -p udp --sport 6112 -j ACCEPT
echo "diablo done"
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.100.2/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.3/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.4/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.5/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.6/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.7/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.8/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.9/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.10/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.11/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.12/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.13/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.14/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.15/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.16/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.100.17/24 -j MASQ
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_quake
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_user
/sbin/modprobe ip_masq_raudio
samba restart
# REJECT packets on ppp0 which are sending to the internal network:
/sbin/ipchains -A output -i ppp0 -s 0.0.0.0/0 -d 192.168.100.0/24 -j REJECT
As I say.. its very small and not yet complete, but one of my LAN users (this is a
share house on my network) want to
be able to play diablo on the net.. I can't seem to make it work..
any ideas?
Thanks again.
--
==============================Sig Start==============================
You see, your innocent young mind cannot possibly comprehend the full
spectrum of wanton cruelty and sadistic glee that is, what I call,
\"The Milkman Dan Experience\"
-- redmeat -- www.redmeat.com -- Humour for the sick and uninhibited
==============================Sig Stop===============================
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs