Skip to contentSkip to conversation

Redirect Rule for PPP users!!

DISCUSSION Krishna 1 participant 1 message Sep 27, 2002

lore
Share & tools
lore

Krishna

author
#0 lore raw

Hi,
I want to redirect packet from the ppp interface. I made rules in the
auth-up script

     /sbin/iptables -A INPUT -p udp -i $1 -d 0.0.0.0/0 --dport 53 -j
REDIRECT --to-ports 3128
     /sbin/iptables -A INPUT -p tcp -i $1 -d 0.0.0.0/0 --dport 53 -j
REDIRECT --to-ports 3128
     /sbin/iptables -A INPUT -p tcp -i $1 -d 0.0.0.0/0 --dport 80 -j

REDIRECT --to-ports 3128

But they don't work. Here $1 is the interface through which the ppp users are logging.

regards
Krishna

Krishna Shekhar
Network Administrator
Wiplash Wireless