NewBiee
How do I check if all the traffic is routed after connecting to openvpn? It works on whatismyip.com but I know it checks only for port 80, how do I check for the other ports? Because I tried connecting to ssh, it says that my last login shows not from the server IP on my VPN (I tried logging in on ssh and logging out to check it)
Help would be greatly appreciated.
janjust
it's quite hard to forward only traffic for port 80 and not for port 22 ; it's possible, but you need some extensive firewall rules in order to do that. So, if port 80 works then there's a good chance that port 22 is also sent via the VPN ...
after logging on the SSH server type 'last -10 -a' to see where you are connecting from.
NewBiee
I've tried that, it only shows my real IP (I'm connected to openvpn) but when I check whatismyip.com, It shows my FAKE address. I also tried it on other VPN's that uses openvpn, so maybe it's on my computer right?
Mimiko
Use "route print" to see for rules which may redirect traffic to SSH server not thru VPN, but thru local gateway.
gloner
For absolutely sure that all traffic goes through VPN you need set up strict firewall rules.
For example, you should specify that all connections except OpenVPN (ip:port:protocol) must be dropped (DNS too).
All other connections (only from VPN ip) allowed to anywere.
dayknight
as mimiko indicated - check your routing table - that's proof enough. For fun - running tcpdump on the server will also show traffic being routed to it