All pastes #806686 Raw Edit

Stuff

public text v1 · immutable
·published 2007-12-05 20:56 UTC
rendered paste body
#!/bin/bash
#echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -t nat -F

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT

iptables -A FORWARD -p tcp --dport 80 -j REJECT
iptables -A FORWARD -p udp --dport 80 -j REJECT

iptables -t nat -A PREROUTING   -p tcp --dport 80 -j REDIRECT --to-port 3128

iptables -t nat -A POSTROUTING -j MASQUERADE

ip.sh