Linux Netfilter discussions
 help / color / mirror / Atom feed
* load balanced between tunnel VPN and an Normal Link Internet
@ 2011-04-10 18:55 Usuário do Sistema
  2011-04-11 19:21 ` Andrew Beverley
  0 siblings, 1 reply; 3+ messages in thread
From: Usuário do Sistema @ 2011-04-10 18:55 UTC (permalink / raw)
  To: netfilter

disregard my previous menssage because it's was without subject

Hello everyone, I'm new in this maillist and I would like receive help
about my problem......


I have a Firewall ( with fwbuider - Red-Hat 5.6 ) in my branch office
connected to my head office by openvpn. I'm with a problem when flow
data is to destination port 80 from my branch office to my head
office.

in my branch office firewall has 3 device Ethernet:

eth0 - inside network 192.100.100.0/24
eth1 - wan 1 VPN
eth2 - wan 2 only for Internet Traffic

I'm marking all traffic for port 80 go out upon wan 2 - eth2. but,
it's a problem because when an user tries access an service at the
port 80 in my head office it isen't work!

the firewall toward to eth2 insted to VPN the traffic from inside
network to my head office when destinatio is port 80.  I've try solve
this with rule below but it isen't work.occur the same problem.

my head office inside network is 128.2.0.0/16 where I have my web
servers at the port 80.

rules created in firewall branch office

/sbin/iptables -t mangle -A PREROUTING -s 0/0 -d ! 128.2.0.0/16 -p tcp
--dport 80 -j MARK --set-mark 1
ip rule del fwmark 1
ip route flush table internet
ip rule add fwmark 1 table internet prio 20
ip route add default via 200.108.139.1 table internet ( it's eth2 )
ip route flush cache

part from my route main table

128.2.0.0       192.168.200.101 255.255.0.0     UG    0      0        0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth3
0.0.0.0         190.128.173.97  0.0.0.0         UG    0      0
0 eth1 > where is my VPN


any Tip ?? I wish that packages from inside networ 192.100.100.0/24 to
128.2.0.0/16 port 80 go out for tun0 insted by eth2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-11 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10 18:55 load balanced between tunnel VPN and an Normal Link Internet Usuário do Sistema
2011-04-11 19:21 ` Andrew Beverley
2011-04-11 20:20   ` Usuário do Sistema

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox