Can ping openvpn server while connected but not others
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
I'm thinking maybe the openvpn server hasn't pushed the correct routing info to the client? that's the only thing I can think of besides firewalls for why it wouldn't be able to get anywhere. should I just try to push individual IP's and see if that works maybe?
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
Funny, can't even ping myself as a VPN client. (10.10.0.6 pinging 10.10.0.6 fails). Didn't help to try to individually forward IP's...
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Can ping openvpn server while connected but not others
on windows XP ? is there some antivirus package causing problems? I'd go for reinstalling openvpn - this is definitely not normal.10.10.0.6 pinging 10.10.0.6 fails
In "default" mode the first VPN client is assigned 10.10.0.6 with remote endpoint 10.10.0.5 - this remote virtual endpoint cannot be reached, however. The server is always found at 10.10.0.1.
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
No, from OSX as a client.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Can ping openvpn server while connected but not others
whoops, I got confused with another post, sorry about that...
don't know why a MacOS client would not allow you to ping the tun adapter itself - and I cannot test it on MacOS right now as I don't use Macs regularly... what about the macOS firewall?
don't know why a MacOS client would not allow you to ping the tun adapter itself - and I cannot test it on MacOS right now as I don't use Macs regularly... what about the macOS firewall?
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
No firewall to speak of. I've never encountered an issue like this with other VPN's. I can try to set up something else as a client and try that, but I seriously doubt that as the issue. Need some time elsewhere though, will be back to this a little later today. Thanks so much for the help up to this point by the way. I really need this to work by friday 

-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
Also, if it was the clients firewall, I would expect pinging 192.168.5.1 to have the same issue, as well as 10.10.0.1. I think this points even more to the gateway/vpn server just not doing anything with what it receives. Maybe I should try redirecting my gateway through the VPN server to see what happens?
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
Re: Can ping openvpn server while connected but not others
It must be:server.conf has
port 8787
proto udp
dev tun
server 10.10.0.1 255.255.255.0
route 10.10.0.0 255.255.255.0
push "route 192.168.5.0 255.255.255.0"
push "route 10.10.0.0 255.255.255.0"
push "dhcp-option WINS 10.10.0.1"
Code: Select all
server 10.10.0.0 255.255.255.0
as it is added automaticaly by OpenVPN.route 10.10.0.0 255.255.255.0
push "route 10.10.0.0 255.255.255.0"
On OpenVPN server do you have a WINS service? Why you are pushing that option?
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
Yes, I do, I hope to have samba access working.
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
Also, I have fixed that conf issue (server line) but has made no difference in the important test of ping access.
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
Re: Can ping openvpn server while connected but not others
Just show the iptables from OpenVPN server when client is connected including all tables; NAT, POSTROUTING, PREROUTING, FORWARD, INPUT, OUTPUT.
Also from the client do a: tracert 192.168.5.77
to see where it stucks.
Also from the client do a: tracert 192.168.5.77
to see where it stucks.
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
How do I show all iptables?
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Can ping openvpn server while connected but not others
Code: Select all
iptables -L -n -v
iptables -t nat -L -n -v
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
Sorry for the long post. Hopefully this is what you expected.
I am downloading a linux distro to try openvpn-ing from, but I've never set that up so I might be prone to other difficulties.
I am downloading a linux distro to try openvpn-ing from, but I've never set that up so I might be prone to other difficulties.
Code: Select all
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
78089 17M ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
1881K 807M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
state ESTABLISHED
1132 71991 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED
88861 8478K input_int all -- eth0 * 0.0.0.0/0 0.0.0.0/0
35203 3944K input_ext all -- eth1 * 0.0.0.0/0 0.0.0.0/0
634 47679 input_ext all -- tun0 * 0.0.0.0/0 0.0.0.0/0
0 0 input_ext all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-IN-ILL-TARGET
'
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
120K 6601K TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp flags:0x06/0x02 TCPMSS clamp to PMTU
2784K 670M forward_int all -- eth0 * 0.0.0.0/0 0.0.0.0/0
3952K 4643M forward_ext all -- eth1 * 0.0.0.0/0 0.0.0.0/0
52 5330 forward_ext all -- tun0 * 0.0.0.0/0 0.0.0.0/0
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-FWD-ILL-ROUTIN
G '
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 1243 packets, 49720 bytes)
pkts bytes target prot opt in out source destination
78089 17M ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
1857K 319M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
state NEW,RELATED,ESTABLISHED
754 30160 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-OUT-ERROR '
Chain forward_ext (2 references)
pkts bytes target prot opt in out source destination
81 4356 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 0
1529 200K ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 3
47 4814 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 11
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 12
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 14
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 18
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 3 code 2
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 5
3950K 4643M ACCEPT all -- eth1 eth0 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED
0 0 ACCEPT all -- tun0 eth0 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 PKTTYPE = multicast LOG flags 6 level 4 prefix
`SFW2-FWDext-DROP-DEFLT '
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
PKTTYPE = multicast
0 0 LOG tcp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 tcp flags:0x17/0x02 LOG flags 6 level 4 prefix
`SFW2-FWDext-DROP-DEFLT '
22 1848 LOG icmp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-FWDext-DROP-DE
FLT '
15 2092 LOG udp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-FWDext-DROP-DE
FLT '
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 state INVALID LOG flags 6 level 4 prefix `SFW2-
FWDext-DROP-DEFLT-INV '
52 5330 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain forward_int (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 0
408 29825 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 3
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 11
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 12
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 14
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 18
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 3 code 2
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED icmp type 5
2782K 670M ACCEPT all -- eth0 eth1 0.0.0.0/0 0.0.0.0/0
state NEW,RELATED,ESTABLISHED
0 0 ACCEPT all -- eth0 tun0 0.0.0.0/0 0.0.0.0/0
state NEW,RELATED,ESTABLISHED
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 PKTTYPE = multicast LOG flags 6 level 4 prefix
`SFW2-FWDint-DROP-DEFLT '
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
PKTTYPE = multicast
0 0 LOG tcp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 tcp flags:0x17/0x02 LOG flags 6 level 4 prefix
`SFW2-FWDint-DROP-DEFLT '
55 8307 LOG icmp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-FWDint-DROP-DE
FLT '
0 0 LOG udp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-FWDint-DROP-DE
FLT '
790 37230 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 state INVALID LOG flags 6 level 4 prefix `SFW2-
FWDint-DROP-DEFLT-INV '
1430 74193 reject_func all -- * * 0.0.0.0/0 0.0.0.0/0
Chain input_ext (3 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
PKTTYPE = broadcast
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
icmp type 4
2502 98274 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
icmp type 8
0 0 LOG tcp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 tcp dpt:6666 flags:0x17/0x02 LOG flags 6 level
4 prefix `SFW2-INext-ACC-TCP '
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:6666
0 0 LOG tcp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 tcp dpt:8787 flags:0x17/0x02 LOG flags 6 level
4 prefix `SFW2-INext-ACC-TCP '
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:8787
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0
udp dpt:6666
2 84 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0
udp dpt:8787
7 448 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 PKTTYPE = multicast LOG flags 6 level 4 prefix
`SFW2-INext-DROP-DEFLT '
9 576 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
PKTTYPE = multicast
804 43504 LOG tcp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 tcp flags:0x17/0x02 LOG flags 6 level 4 prefix
`SFW2-INext-DROP-DEFLT '
82 11496 LOG icmp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-INext-DROP-DEF
LT '
1565 204K LOG udp -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 LOG flags 6 level 4 prefix `SFW2-INext-DROP-DEF
LT '
26 1397 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
limit: avg 3/min burst 5 state INVALID LOG flags 6 level 4 prefix `SFW2-
INext-DROP-DEFLT-INV '
33324 3892K DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain input_int (1 references)
pkts bytes target prot opt in out source destination
88861 8478K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain reject_func (1 references)
pkts bytes target prot opt in out source destination
1268 51956 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0
reject-with tcp-reset
0 0 REJECT udp -- * * 0.0.0.0/0 0.0.0.0/0
reject-with icmp-port-unreachable
162 22237 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0
reject-with icmp-proto-unreachable
Code: Select all
Chain PREROUTING (policy ACCEPT 306K packets, 28M bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 13754 packets, 1150K bytes)
pkts bytes target prot opt in out source destination
123K 9320K MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0
0 0 MASQUERADE all -- * tun0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 54071 packets, 4423K bytes)
pkts bytes target prot opt in out source destination
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Can ping openvpn server while connected but not others
your forwarding iptables rules look complicated; try adding the following iptables rules to see if it helps:
Code: Select all
iptables -I FORWARD -o tun+ -j ACCEPT
iptables -I FORWARD -i tun+ -j ACCEPT
-
- OpenVPN User
- Posts: 22
- Joined: Mon Sep 19, 2011 3:06 pm
Re: Can ping openvpn server while connected but not others
So I might have been complicating things a bit here, but I installed a linux distro into a virtual machine and got it connected to the vpn. What I get is the complete opposite of my previous results. From the VM, I get assigned 10.10.0.6, which I can ping, and then I can't ping anything *else* including the 192.168.5.1 / 10.10.0.1, nothing.
...Feels like something really stupid is going on... Trying to arrange for testing from a different machine...
...Feels like something really stupid is going on... Trying to arrange for testing from a different machine...