Linux Netfilter discussions
 help / color / mirror / Atom feed
* connect to openvpn but multipath routing used.
@ 2008-09-23 15:34 Brent Clark
  2008-09-23 20:58 ` Brian Austin - Standard Universal
  0 siblings, 1 reply; 2+ messages in thread
From: Brent Clark @ 2008-09-23 15:34 UTC (permalink / raw)
  To: 'Mail List - Netfilter'

Hi

For the likes of me I cant get my mind around this.

I got two DSL (two separate ISP's) lines that I use multipath routing on 
(works like a bomb, i.e. from in the LAN out to internet). But what I 
want to do is have it that I can randomly connect to my openvpn (sits 
and configured on my router / fw), via either ISP.

Basically in the openvpn conf file I would like to have

remote-random
remote oneisp.dyndns.org (fixed ip)
remote anotherisp.dyndns.org (dynamic ip)

Currently I have openvpn working through the one ISP (fixed ip).

For my tests I have being trying :

iptables -t filter -A INPUT -p udp --dport 1194 -m state --state NEW -j 
ACCEPT

For output (please bare with me on this)
iptables -t filter -A OUTPUT -m state --state NEW -j ACCEPT

For marking I have been trying and trying to get traffic out the dynamic 
ISP.

iptables -t mangle -A OUTPUT -p udp --sport 1194 -j MARK --set-mark 0x1
iptables -t mangle -A POSTROUTING -p udp --sport 1194 -j MARK --set-mark 0x1

The stranges thing that I saw was that on using the last two of the 
above rules, is that with using tshark, that i was seeing that ip 
address of my primary interface (fixed ip address), as opposed to that 
of the dynamic ip.

If anyone can help it would be appreciate.

Kind Regards
Brent Clark

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

end of thread, other threads:[~2008-09-23 20:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 15:34 connect to openvpn but multipath routing used Brent Clark
2008-09-23 20:58 ` Brian Austin - Standard Universal

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