[mythtv-users] OT: default routes

Hika van den Hoven hikavdh at gmail.com
Wed Sep 23 07:20:06 UTC 2015


Hoi Simon,

Wednesday, September 23, 2015, 8:56:23 AM, you wrote:

> Hika van den Hoven <hikavdh at gmail.com> wrote:

>> Since recent I have a second internet connection and am playing around
>> with default routes. (only € 10 including phone!)
>> I need my first connection because it has a solid IP to connect to by
>> VPN but the second is a little bit faster. So I thought of setting my
>> default route on the second. But now vpn won't connect anymore. Any
>> thoughts on where to look?

> You need "rule based routes" or "policy routing".

> Basically the default route means "if there wasn't anything more
> specific found, then send the packet this way", and only one will be
> active at a time (there may be more than one defined, but priorities
> will determine which one actually gets to route traffic).

> So if you want to route *just* the VPN traffic via one provider,
> and everything else via the new provider, then you need routes like this :
> If traffic is for the VPN itself (ie the encapsulated and control
> packets with the other endpoint), send via A
> If traffic is for the other end of the VPN tunnel, send via A
> (Default) send via B

> (Assuming you're using GNU/Linux for your router) I've not done
> this myself natively with iptables, I usually use Shorewall for my firewall setups.

OK, sounds useful. My router is running fli4l, a dressed down standard
linux. The route command is not there. I have to use 'ip route' and it
runs iptables. One problem is that it has a configuration shell in
which I cannot do anything like this. I even, if I want to change the
default route, have to do it after booting on the prompt. It goes
automatically to the pppoe device and the new connection is a normal
ip connection to the modem/router. But I can create a script to run
after boot, or to switch between the routes.

So is this conditional routing done with ip route? (I haven't seen any
syntax) or through iptables?


Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list