Different behavior for different networks

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sandro.silva
OpenVpn Newbie
Posts: 1
Joined: Wed Feb 08, 2023 1:16 am

Different behavior for different networks

Post by sandro.silva » Wed Feb 08, 2023 1:20 am

Hi,

When I connect to a server via openvpn, if I try to connect to one network, IP is assumed as server IP but if I connect to other network, ip is assumed as client ip.

if I try to connect to IP 10.250.225.181, ip in network assumes client ip: 10.98.1.178
But if I try to connect to 10.250.224.169, ip in netowork assumes server ip: 10.250.248.254.

This is the tcpdump. Any idea?


22:18:03.480643 IP 10.250.248.2.domain > 10.250.248.254.53563: 31636 2/0/0 CNAME ec2-54-94-123-165.sa-east-1.compute.amazonaws.com., A 10.250.225.181 (145)
22:18:03.499828 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [SEW], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354248621 ecr 0,sackOK,eol], length 0
22:18:04.500781 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [S], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354249622 ecr 0,sackOK,eol], length 0
22:18:05.501914 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [S], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354250622 ecr 0,sackOK,eol], length 0
22:18:06.503563 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [S], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354251623 ecr 0,sackOK,eol], length 0
22:18:07.508808 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [S], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354252623 ecr 0,sackOK,eol], length 0
22:18:08.502583 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [S], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354253624 ecr 0,sackOK,eol], length 0
22:18:10.509821 IP 10.98.1.178.54945 > 10.250.225.181.27017: Flags [S], seq 147861812, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 354255625 ecr 0,sackOK,eol], length 0
22:18:17.398167 IP 10.250.248.2.domain > 10.250.248.254.52302: 20021 2/0/0 CNAME ec2-23-23-31-67.compute-1.amazonaws.com., A 10.250.224.169 (134)
22:18:17.431306 IP 10.250.248.254.54947 > 10.250.224.169.27017: Flags [SEW], seq 797514704, win 65535, options [mss 1360,nop,wscale 6,nop,nop,TS val 2886165567 ecr 0,sackOK,eol], length 0
22:18:17.545178 IP 10.250.224.169.27017 > 10.250.248.254.54947: Flags [S.E], seq 718793942, ack 797514705, win 65160, options [mss 1460,sackOK,TS val 3748938659 ecr 2886165567,nop,wscale 7], length 0
22:18:17.552748 IP 10.250.248.254.54947 > 10.250.224.169.27017: Flags [.], ack 1, win 2064, options [nop,nop,TS val 2886165688 ecr 3748938659], length 0
22:18:21.973965 IP 10.250.248.254.54947 > 10.250.224.169.27017: Flags [F.], seq 1, ack 1, win 2064, options [nop,nop,TS val 2886170110 ecr 3748938659], length 0
22:18:22.087943 IP 10.250.224.169.27017 > 10.250.248.254.54947: Flags [F.], seq 1, ack 2, win 510, options [nop,nop,TS val 3748943202 ecr 2886170110], length 0
22:18:22.095096 IP 10.250.248.254.54947 > 10.250.224.169.27017: Flags [.], ack 2, win 2064, options [nop,nop,TS val 2886170231 ecr 3748943202], length 0

Post Reply