Hi all,
I'm unsure of the following firewall log entry caught on an OpenVPN server box:
Mar 20 21:01:31 - Action=Block, Interface=WLAN, Source=172.26.1.97:1027, Destination=172.27.0.1:36669, Proto=TCP, Flags=S
A priori knowledge:
a) The block action is a result of an anti source spoofing rule on the WLAN interface, discarding all traffic originating from outside the assigned 172.27.0.0/16 network.
b) The WLAN Interface has 172.27.0.1/255.255.0.0 assigned to it (Ethernet connecting to Switch/APs).
c) The OpenVPN has 172.26.0.1/255.255.0.0 assigned to it (VPN Subnet).
d) 172.26.1.97 is a valid openVPN Client (Win32), ifconfig pushed from the server by client specific configuration.
e) This VPN uses /30 subnets.
Analysis of the log entry:
The packet appears to be a TCP SYN request directed to the OpenVPN server IP:port (172.27.0.1:36669), presumably coming from the OpenVPN client trying to establish a connection with the server.
Anomalies detected:
1) The source address of the packet belongs to the VPN network (172.26.x.x)
2) However, the interface on which this packet came in is actually the WLAN interface (172.27.x.x)
At first, it looks like openVPN client is "simply" leaking packets to the WLAN that should actually go through the VPN. Then again, this makes no sense because if the VPN client tries to connect and is still at the SYN stage, then obviously the VPN connection can't be up and running yet. It's rather strange to see the client's VPN subnet IP appear as the source address of a packet on the WLAN. Even stranger when considering that the VPN client->server connection was only just being set up (TCP SYN sent to server socket) at that time.
A bug, perhaps? If so, it's not mission critical. Subsequent TCP SYNs are sent via the correct interface, the connection establishes and everything works as it should (except for throughput, but that's another story). Still, I would like to understand what happens. Can someone provide more insight?
Cheers
Chris