Displaying 3 results from an estimated 3 matches for "publicip1".
Did you mean:
publicip
2008 Jan 17
1
need help in configuring iptables for smtp traffic
...are from the same service provider and 1 is
from different service provider. eth3 and eth2 are from the same
public provider but currently we are using only eth2 public ip There
is a script which load balances the Internet Connection to both the
Service providers through ip rule
ip rule add from $publicip1 table 1
ip rule add from $publicip2 table 2
ip route add default scope global nexthop via $publicip1 dev eth1
weight 2 nexthop via $publicip2 dev eth2 weight 6
The problem we are facing is that we have 2 mx exchangers in our
domain. Both the exchangers receives/sends the mails from the public
ip...
2005 Feb 01
0
multiple uplinks example script
...> small server
3. Client -> small server
The problem is, when connection 1. use different uplink then connection 2.
Those icq related rules below corrected the problem.
My script:
IF0=eth2
IF1=eth1
IF2=eth3
IF3=eth0
P0_NET=192.168.1.0/24
P1_NET=public1
P2_NET=public2
IP0=192.168.1.254
IP1=publicip1
IP2=publicip1
#gateway
P1=publicgw1
P2=publicgw2
#table
T1=211
T2=212
T3=222
IP=/sbin/ip
# Delete everything
#$IP route flush cache
$IP route flush all
$IP route flush all table $T1
$IP route flush all table $T2
$IP route flush all table $T3
#icq rules
$IP rule delete prio 48 to 205.188.0.0/16...
2006 Mar 28
1
Please help - totally confused (NAT + FWMARK + IMQ + HTB)
...NG/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 -j MARK --set-mark 0x1890
iptab...