Displaying 1 result from an estimated 1 matches for "user1ip".
Did you mean:
user1_ip
2006 Mar 28
1
Please help - totally confused (NAT + FWMARK + IMQ + HTB)
...of
iptables calls, POSTROUTING/PREROUTING misunderstanding, etc...
Thank you.
Jan
Here is my script:
#clean everything
iptables -X
iptables -X -t nat
iptables -X -t mangle
iptables -F
iptables -F -t nat
iptables -F -t mangle
# NAT setup
# user 1 nat
iptables -t nat -A POSTROUTING -s $user1ip -j SNAT --to-source
$publicip1
(repeat for all users)
# setup IMQ
ip link set imq0 up
ip link set imq1 up
# flush mangle
iptables -t mangle -F
# MARK user1''s traffic - mark normal and priority traffic
# mark download(?)(postrouting?)
iptables -t mangle -A POSTROUTING -d $user1ip...