I've got a router and a server, both running FreeBSD, and both connected to the same switch. For the most part, things work as expected; the server (and other hosts) can connect to multiple networks through the router just fine, and they can communicate between one another without issue (e.g. ssh). I can also connect to the router remotely via OpenVPN, and the OpenVPN tunnel itself works fine. For example, I can ssh into the router itself without issues.
The problem comes when I try to send traffic through OpenVPN to the server. I can actually see this traffic leave the router by using tcpdump on the egress interface:
However, this traffic mysteriously never appears on the ingress side on the server:
At first I thought this was due the switch between them dropping the traffic, as there aren't any other places that packets could be dropped. However, even after I swapped out this switch for one of a completely different make and model, the problem persists. The configuration looks proper on the server as well:
...but the packets simply don't get there, even though other traffic on the same VLAN between the router and switch are handled just fine. Anyone have an idea what could be the cause?
The problem comes when I try to send traffic through OpenVPN to the server. I can actually see this traffic leave the router by using tcpdump on the egress interface:
Code:
# OpenVPN client is 172.168.0.18, the server it's trying to reach is 192.168.40.202, and this dump is from the router between them (which runs the OpenVPN server)
tcpdump -nqpi vlan40 proto \\udp and host 172.16.0.18
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan40, link-type EN10MB (Ethernet), capture size 262144 bytes
16:51:48.338621 IP 172.16.0.18.58658 > 192.168.40.202.53: UDP, length 40
However, this traffic mysteriously never appears on the ingress side on the server:
Code:
# Run at the same time on the server
tcpdump -nvvvi vlan40 host 172.16.0.18
tcpdump: listening on vlan40, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
At first I thought this was due the switch between them dropping the traffic, as there aren't any other places that packets could be dropped. However, even after I swapped out this switch for one of a completely different make and model, the problem persists. The configuration looks proper on the server as well:
Code:
# Relevant lines from ifconfig
vlan40: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
inet 192.168.40.200 netmask 0xfffffe00 broadcast 192.168.41.255
inet 192.168.40.202 netmask 0xffffffff broadcast 192.168.40.202
groups: vlan
vlan: 40 vlanproto: 802.1q vlanpcp: 0 parent interface: lagg0
media: Ethernet autoselect
status: active