I use these rules in iptables to block any new connections
Just remember to set your variables
#Location of iptables???
$IPTABLES=/sbin/iptables
$EXTIP="ppp0" #Change to your external interface
$INTIF="eth1" #Change to your internal interface
#Stops new...
Here is a quick and dirty way to get your IP address emailed to you.......put this script into your ppp.up file or similar.
EXTIF="ppp0"
EXTIP=`/sbin/ifconfig | grep -A 4 $EXTIF | awk '/inet/ { print $2 } ' | sed -e s/addr://`
echo " External Interface: $EXTIP" >...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.