OpenVPN on pfSense, Fedora 25 client routing issues
Posted: Mon Feb 27, 2017 4:40 pm
Apologies if this is not the right part of the forums. With only three obvious options the pickings are slim.
So I am running Fedora 25, OpenVPN and connecting to the OpenVPN server package in pfSense at work. Windows clients work perfectly, better than perfectly.. they work amazingly. Linux however, has issues. I want to preface this with the fact that I know nothing about Linux and Openvpn until two days ago. The configs are copied from the working Windows side.
Below is my config:
dev tun
persist-tun
persist-key
cipher CAMELLIA-256-CBC
auth RSA-SHA224
tls-client
client
resolv-retry infinite
remote xx.xxx.xx.xx 34448 udp
auth-user-pass
ca gntc-fw-1-udp-34448-ca.crt
tls-auth gntc-fw-1-udp-34448-tls.key 1
ns-cert-type server
comp-lzo adaptive
Im about to reboot into windows and Ill grab the screenshots of the pfSesne Openvpn config.
Here's from my Fedora side, 10.0.20.1 is my works internal subnet, 10.0.40 is the vpn subnet.
➜ ~ ping 10.0.20.1
PING 10.0.20.1 (10.0.20.1) 56(84) bytes of data.
^C
--- 10.0.20.1 ping statistics ---
83 packets transmitted, 0 received, 100% packet loss, time 83974ms
➜ ~ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 50 0 0 tun0
default gateway 0.0.0.0 UG 600 0 0 wlp2s0
10.0.20.0 gateway 255.255.255.0 UG 50 0 0 tun0
10.0.40.0 0.0.0.0 255.255.255.0 U 50 0 0 tun0
gntc-fw-1 gateway 255.255.255.255 UGH 600 0 0 wlp2s0
192.168.15.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
gateway 0.0.0.0 255.255.255.255 UH 600 0 0 wlp2s0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
➜ ~ ifconfig
brwifi: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether aa:ce:8b:6e:18:a1 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s20f0u1u3i5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 9c:eb:e8:41:2c:e8 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 2013 bytes 157752 (154.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2013 bytes 157752 (154.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.0.40.2 netmask 255.255.255.0 destination 10.0.40.2
inet6 fe80::1485:fb75:7a5d:1f5 prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 490 bytes 37448 (36.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.100.1 netmask 255.255.255.0 broadcast 192.168.100.255
ether 52:54:00:36:8f:26 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.15.177 netmask 255.255.255.0 broadcast 192.168.15.255
inet6 fe80::ba60:23ff:ec7:280d prefixlen 64 scopeid 0x20<link>
ether 9c:b6:d0:0f:3a:77 txqueuelen 1000 (Ethernet)
RX packets 48571 bytes 71228018 (67.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26949 bytes 2479194 (2.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
➜ ~
And the routing table before connection:
➜ ~ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default Barrier.jinxed. 0.0.0.0 UG 600 0 0 wlp2s0
192.168.15.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
➜ ~
I am unable to ping the vpn gateway, works own internet gateway, or even googles public dns servers. nothing.
I don;t have access to SSH into pf so here's it's config in a short series of screenshots, hopping this is ok here:
http://imgur.com/gallery/ZJXy4
So I am running Fedora 25, OpenVPN and connecting to the OpenVPN server package in pfSense at work. Windows clients work perfectly, better than perfectly.. they work amazingly. Linux however, has issues. I want to preface this with the fact that I know nothing about Linux and Openvpn until two days ago. The configs are copied from the working Windows side.
Below is my config:
dev tun
persist-tun
persist-key
cipher CAMELLIA-256-CBC
auth RSA-SHA224
tls-client
client
resolv-retry infinite
remote xx.xxx.xx.xx 34448 udp
auth-user-pass
ca gntc-fw-1-udp-34448-ca.crt
tls-auth gntc-fw-1-udp-34448-tls.key 1
ns-cert-type server
comp-lzo adaptive
Im about to reboot into windows and Ill grab the screenshots of the pfSesne Openvpn config.
Here's from my Fedora side, 10.0.20.1 is my works internal subnet, 10.0.40 is the vpn subnet.
➜ ~ ping 10.0.20.1
PING 10.0.20.1 (10.0.20.1) 56(84) bytes of data.
^C
--- 10.0.20.1 ping statistics ---
83 packets transmitted, 0 received, 100% packet loss, time 83974ms
➜ ~ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 50 0 0 tun0
default gateway 0.0.0.0 UG 600 0 0 wlp2s0
10.0.20.0 gateway 255.255.255.0 UG 50 0 0 tun0
10.0.40.0 0.0.0.0 255.255.255.0 U 50 0 0 tun0
gntc-fw-1 gateway 255.255.255.255 UGH 600 0 0 wlp2s0
192.168.15.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
gateway 0.0.0.0 255.255.255.255 UH 600 0 0 wlp2s0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
➜ ~ ifconfig
brwifi: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether aa:ce:8b:6e:18:a1 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s20f0u1u3i5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 9c:eb:e8:41:2c:e8 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 2013 bytes 157752 (154.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2013 bytes 157752 (154.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.0.40.2 netmask 255.255.255.0 destination 10.0.40.2
inet6 fe80::1485:fb75:7a5d:1f5 prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 490 bytes 37448 (36.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.100.1 netmask 255.255.255.0 broadcast 192.168.100.255
ether 52:54:00:36:8f:26 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.15.177 netmask 255.255.255.0 broadcast 192.168.15.255
inet6 fe80::ba60:23ff:ec7:280d prefixlen 64 scopeid 0x20<link>
ether 9c:b6:d0:0f:3a:77 txqueuelen 1000 (Ethernet)
RX packets 48571 bytes 71228018 (67.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26949 bytes 2479194 (2.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
➜ ~
And the routing table before connection:
➜ ~ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default Barrier.jinxed. 0.0.0.0 UG 600 0 0 wlp2s0
192.168.15.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
➜ ~
I am unable to ping the vpn gateway, works own internet gateway, or even googles public dns servers. nothing.
I don;t have access to SSH into pf so here's it's config in a short series of screenshots, hopping this is ok here:
http://imgur.com/gallery/ZJXy4