Linux Netfilter discussions
 help / color / mirror / Atom feed
* attempting to transparently proxy with this script to no avail
@ 2005-03-01 22:03 joe z
  2005-03-02  1:07 ` attempting to transparently proxy with this script to no avail (nfcan: addressed to exclusive sender for this address) Jim Laurino
  2005-03-02  5:33 ` attempting to transparently proxy with this script to no avail Jason Opperisano
  0 siblings, 2 replies; 3+ messages in thread
From: joe z @ 2005-03-01 22:03 UTC (permalink / raw)
  To: netfilter

this script runs everything fine just the redirect doesn't. the proxy works 
fine when browser pointed at it.

/sbin/depmod -a
/sbin/modprobe ipt_LOG
/sbin/modprobe ipt_REDIRECT

iptables -F
iptables -t mangle -F
iptables -t nat -F
iptables -X

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t mangle -P PREROUTING ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -A PREROUTING -m tcp -p tcp --dport 80 -j REDIRECT --to-port 
8080

ifdown eth1
ifdown eth0
ifup eth0
ifup eth1
ifconfig eth1 192.168.11.8 netmask 255.255.255.0
ifconfig eth0 192.168.11.10 netmask 255.255.255.0
ifconfig eth0 promisc
ifconfig eth1 promisc
ifconfig eth1 arp
ifconfig eth0 arp

route add 192.168.11.2 dev eth1
route add default gw 192.168.11.2

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-02  5:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-01 22:03 attempting to transparently proxy with this script to no avail joe z
2005-03-02  1:07 ` attempting to transparently proxy with this script to no avail (nfcan: addressed to exclusive sender for this address) Jim Laurino
2005-03-02  5:33 ` attempting to transparently proxy with this script to no avail Jason Opperisano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox