paul on Sat, 3 Nov 2001 08:30:09 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] IPChains Question: HTTP port access


It's been a while since I messed with ipchains. This might work, but I
haven't tested it.

NETMON="192.168.0.1 3000"
NIC=eth0
LOG=-l

/sbin/ipchains -A input -j ACCEPT -p all -s 192.168.0.2 -d $NETMON -i
$NIC $LOG
/sbin/ipchains -A input -j ACCEPT -p all -s 192.168.0.3 -d $NETMON -i
$NIC $LOG
/sbin/ipchains -A input -j ACCEPT -p all -s 192.168.0.4 -d $NETMON -i
$NIC $LOG
/sbin/ipchains -A input -j DENY -p all -s 0/0 -d $NETMON -i $NIC $LOG

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug