Re: Route for a special IP

2015-03-11 Thread Zhi-Qiang Lei
vip="192.168.1.200" pass in quick from $vip to !192.168.1.0/24 route-to tun0 pass out quick on tun0 from $vip to any nat-to tun0 Best regards, Zhi-Qiang Lei > On Mar 12, 2015, at 1:34 PM, Zhi-Qiang Lei wrote: > > Thank you. This fix my problem. > > pass in quick from $vip to !192.168.1.0/24 rou

Re: Route for a special IP

2015-03-11 Thread Zhi-Qiang Lei
Thank you. This fix my problem. pass in quick from $vip to !192.168.1.0/24 route-to tun0 pass out quick on tun0 from $vip to any nat-to tun0 Best regards, Zhi-Qiang Lei > On Mar 12, 2015, at 4:54 AM, Giancarlo Razzolini wrote: > > On 11-03-2015 12:39, Zhi-Qiang Lei wrote: >> I have a OpenBSD 5.

Re: Route for a special IP

2015-03-11 Thread Adam Thompson
On 2015-03-11 10:58 PM, Zhi-Qiang Lei wrote: > It was just a router which does NAT for local devices in > 192.168.1.0/24. The external interface, of cause, was pppoe0. Now for > some reason, I want one of the device with IP 192.168.1.200 > communicate with outside through the tunnel interface tu

Re: Route for a special IP

2015-03-11 Thread Zhi-Qiang Lei
It was just a router which does NAT for local devices in 192.168.1.0/24. The external interface, of cause, was pppoe0. Now for some reason, I want one of the device with IP 192.168.1.200 communicate with outside through the tunnel interface tun0 created by OpenVPN. Normally I should setup OpenVPN c

Re: Route for a special IP

2015-03-11 Thread Giancarlo Razzolini
On 11-03-2015 12:39, Zhi-Qiang Lei wrote: > I have a OpenBSD 5.6 router with two external interfaces pppoe0 and tun0. I am assuming the pppoe0 connects directly to the internet and tun0 also has internet connectivity at the other end of the tunnel, right? > > Generally, all packets will go throug

Re: Route for a special IP

2015-03-11 Thread Daniel Melameth
On Wed, Mar 11, 2015 at 9:39 AM, Zhi-Qiang Lei wrote: > I have a OpenBSD 5.6 router with two external interfaces pppoe0 and tun0. > > Generally, all packets will go through pppoe0. However, now I have a special > client with IP 192.168.1.200, is it possible to force it to use tun0? You can use pf

Re: Route for a special IP

2015-03-11 Thread Jason Adams
On 03/11/2015 08:39 AM, Zhi-Qiang Lei wrote: > I have a OpenBSD 5.6 router with two external interfaces pppoe0 and tun0. > > Generally, all packets will go through pppoe0. However, now I have a special > client with IP 192.168.1.200, is it possible to force it to use tun0? Thanks. > > Best regards,

Route for a special IP

2015-03-11 Thread Zhi-Qiang Lei
I have a OpenBSD 5.6 router with two external interfaces pppoe0 and tun0. Generally, all packets will go through pppoe0. However, now I have a special client with IP 192.168.1.200, is it possible to force it to use tun0? Thanks. Best regards, Zhi-Qiang Lei