Re: ratble and rdomain support on dhcpd and openvpn

2016-07-18 Thread Difan Zhao
Great ideas! Thank you Pierre! -Original Message- From: BARDOU Pierre [mailto:bardo...@mipih.fr] Sent: Monday, July 18, 2016 8:51 AM To: Difan Zhao Cc: misc@openbsd.org Subject: RE: ratble and rdomain support on dhcpd and openvpn Hi, OpenVPN does not support

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-18 Thread BARDOU Pierre
Hi, OpenVPN does not support rdomains and probably never will, as it is OpenBSD-specific. I had some success by running it in the default rdomain an then dispatching the clients in different rdomains via PF. But this was for server mode. Maybe you can do something like that for the client, like

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-15 Thread bytevolcano
Kapetanakis Giannis wrote: On 15/07/16 22:34, Difan Zhao wrote: Thank you sir! So I probably just stick with my hacking approach and wait for the 6.0. I see that will come in November so not too much waiting. So any idea how the openvpn might start to support rtable or rdomain? Thanks, Difan

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-15 Thread Kapetanakis Giannis
On 15/07/16 22:34, Difan Zhao wrote: Thank you sir! So I probably just stick with my hacking approach and wait for the 6.0. I see that will come in November so not too much waiting. So any idea how the openvpn might start to support rtable or rdomain? Thanks, Difan OpeBSD -current

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-15 Thread Difan Zhao
Thank you sir! So I probably just stick with my hacking approach and wait for the 6.0. I see that will come in November so not too much waiting. So any idea how the openvpn might start to support rtable or rdomain? Thanks, Difan -Original Message- From: Chris Cappuccio

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-15 Thread Chris Cappuccio
Difan Zhao [difan.z...@pason.com] wrote: > Hi Pierre, > > I just upgraded the soekris box to openbsd 5.9 however I am still having the > problem setting the rtable... > This requires OpenBSD 6.0 which is not yet released. You can use snapshots at

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-14 Thread Difan Zhao
Hi Pierre, I just upgraded the soekris box to openbsd 5.9 however I am still having the problem setting the rtable... # uname -a OpenBSD covebsd.cove.net 5.9 GENERIC#1561 i386 # rcctl set dhcpd200 rtable 200 usage: rcctl get|getdef|set service | daemon [variable [arguments]] rcctl

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-12 Thread Pierre Emeriaud
2016-07-13 1:37 GMT+02:00 Difan Zhao : > Thank you Chris! I come from the Cisco world with a little Linux experience > but It does make sense to me. It looks like I could run two DHCP processes > this way. > > However the problem is that I still can't set the rtable.. Also

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-12 Thread Difan Zhao
Thank you Chris! I come from the Cisco world with a little Linux experience but It does make sense to me. It looks like I could run two DHCP processes this way. However the problem is that I still can't set the rtable.. Also tried the "rdomain" but got the same error. It took the "set flag"

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-12 Thread Chris Cappuccio
Difan Zhao [difan.z...@pason.com] wrote: > Thanks Pierre! However the command does not work for me... Do I need to > upgrade my openbsd box? I am on 5.8 right now. > > # rcctl set dhcpd rtable 200 > usage: rcctl [-df] action|get|getdef|ls|order|set > [service | daemon [variable

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-12 Thread Difan Zhao
Thanks Pierre! However the command does not work for me... Do I need to upgrade my openbsd box? I am on 5.8 right now. # rcctl set dhcpd rtable 200 usage: rcctl [-df] action|get|getdef|ls|order|set [service | daemon [variable [arguments]] | daemons | lsarg] # rcctl get dhcpd

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-12 Thread Gregor Best
Ahoy, > [...] > 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. > [...] > However, when the openvpn

Re: ratble and rdomain support on dhcpd and openvpn

2016-07-12 Thread Pierre Emeriaud
2016-07-12 7:41 GMT+02:00 Difan Zhao : > > 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. rcctl(8) is the way to go: # rcctl set dhcpd rtable 200 # rcctl get dhcpd

ratble and rdomain support on dhcpd and openvpn

2016-07-11 Thread Difan Zhao
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