All pastes #834162 Raw Edit

Anonymous

public text v1 · immutable
#834162 ·published 2007-12-27 23:51 UTC
rendered paste body
#!/bin/bash

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

iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A POSTROUTING -p TCP --dport 25 -j MASQUERADE
iptables -t nat -A POSTROUTING -p TCP --dport 53-j MASQUERADE
iptables -t nat -A POSTROUTING -p UDP --dport 53 -j MASQUERADE
iptables -t nat -A POSTROUTING -p TCP --dport 110 -j MASQUERADE
iptables -t nat -A POSTROUTING -p TCP --dport 143 -j MASQUERADE