|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|||
VPN Client (tun) and routing tables
I have a OpenVPN client over tun interface where all the outgoing smtp is blocked. When I start it, it pushes 0.0.0.0/1 destination to the routing tables pointing to vpn gateway. And my smtp server is no longer able to send the email. To resolve this problem i have created an IP alias on em0 and wanted to move the smtp to it but however i try i cant make it connectable. I have also created a route for that alias directly to my internal network gateway but it doesnt help. I am literally lost, i dont know even where to start solving this problem.
Is maybe someone so nice and help me out, at least to point me to what to look for Thank you in advance. |
|
|||
On pf side i am not blocking anything and i want the default network traffic to go through the vpn. (192.168.1.1 my router, 192.168.1.201 alias, *.x.x.x are set by vpn client). traceroute -s 192.168.1.1 cant access the network.
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGIN G,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO> ether 00:22:4d:81:52:91 inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::222:4dff:fe81:5291%em0 prefixlen 64 scopeid 0x1 inet 192.168.1.201 netmask 0xffffffff broadcast 192.168.1.201 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active Internet: Destination Gateway Flags Refs Use Netif Expire 0.0.0.0/1 10.x.x.x UGS 0 18546455 tun0 => default 192.168.1.1 UGS 0 2130 em0 10.x.x.x link#4 UH 0 0 tun0 10.x.x.y link#4 UHS 0 0 lo0 localhost link#2 UH 0 2032800 lo0 128.0.0.0/1 10.x.x.x UGS 0 36090399 tun0 192.168.1.0 link#1 U 0 5873530 em0 mini link#1 UHS 0 0 lo0 192.168.1.201/32 link#1 U 0 0 em0 212.x.x.x/32 192.168.1.1 UGS 0 25158704 em0 pf: int_ip = "192.168.1.200" int_if = "em0" int_gw = "192.168.1.1" pass in quick on $int_if reply-to ($int_if $int_gw) proto icmp to $int_ip keep state pass in on $int_if reply-to ($int_if $int_gw) to $int_ip keep state |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD 5.0 and Current i386 buggy acpi tables | shep | OpenBSD Installation and Upgrading | 6 | 14th July 2014 09:16 PM |
OBSD client hangs mounting NFS; Linux client doesn't | amorphousone | OpenBSD General | 7 | 26th August 2010 05:21 AM |
Routing and routing some more! | Weaseal | FreeBSD General | 1 | 19th August 2008 01:39 PM |
pf tables how long values stored | ijk | FreeBSD Security | 3 | 12th August 2008 11:45 AM |
PF <tables> | hunteronline | FreeBSD Security | 8 | 16th July 2008 08:52 PM |