Hi folks,

I am new to openbsd and I like it a lot. I am able to setup my first soekris
box (OpenBSD 5.8) myself however now I ran into some problems with rtable or
rdomain

First of all, I can't really understand the difference between the two. I know
that rdomain can have multiple rtables. One interface can only belong to one
rdomain. IP can repeat between rdomains. It also says that rtable is for
policy-based routing. However I can't find resource online which shows how to
do it only with rtable but not rdomain.. Anyway any recommended reading to
clarify these are highly appreciated!

So I have been playing with rdomain and I am able to get dhcp and openvpn
working but with some hacking. I am seeking a proper way to do this. For
example, to run dhcpd in the rdomain 200, I run the following command. But is
there a way to handle it in rc service management with some flags and/or
special config in dhcpd.conf?

route -T 200 exec dhcpd -c /etc/dhcpd.rdomain200.conf vlan200

Same for the openVPN. I use privateinternetaccess service. I ran "openvpn US\
Seattle.ovpn" to start the vpn and that gives me the tun0 with IP on it. Then
I have run the following to move the tun0 to the rdomain200 manually.

ifconfig tun0 10.156.1.6 10.156.1.5 rdomain 200 (here the IP was dynamically
assigned by the vendor and I will have to use the same one in the command)

However, when the openvpn times out or reconnects, it gives tun0 new IP and
puts tun0 back in the default rdomain (0?). So I have to manually do this all
over again... So anyway to configure it, maybe by editing the ovpn file?

Thanks!
Difan

Reply via email to