projects
/
iptables-cn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
r9: - avoid exit on error when chowning
[iptables-cn.git]
/
squid-redirect
1
#!/bin/sh
2
# redirect tcp/80 traffic (eth1 LAN -> eth0 WAN) to local port 3128
3
# (Squid)
4
5
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
6
-j REDIRECT --to-port 3128