Page 1 of 1
Cannot access server IP
Posted: Tue Oct 11, 2011 1:55 pm
by akmalhisyam
Hi,
I've some problem in configuring my OpenVPN server.
When client is connected to the vpn, they can browse other website, but not the website hosted on the vpn server itself.
According to my traceroute output, when browsing other website, the traffic is routed trough the vpn, but when browsing the website on the server, it is routed through the default internet connection.
What did I do wrong?
Re: Cannot access server IP
Posted: Tue Oct 11, 2011 2:53 pm
by janjust
you didn't do anything wrong: openvpn needs a directed (i.e. non-VPN-ed) route to the VPN server itself; if you want to view a website hosted on the VPN server itself then browse to the VPN IP of the server, e.g.
https://10.8.0.1
if you want https://<site> to always go via the VPN tunnel then you'll need to pull some DNS tricks
Re: Cannot access server IP
Posted: Tue Oct 11, 2011 5:02 pm
by Mimiko
I thread with same problem:
topic8992.html
Try using iptables.
Re: Cannot access server IP
Posted: Tue Oct 11, 2011 7:46 pm
by akmalhisyam
Thanks!
I tought i did something wrong.
and thanks for this mimiko
Having OpenVPN client on the LAN as a gw for those computers and is installed on linux, you can use iptables to rewrite destination ip for the OpenVPN server from public IP to OpenVPN IP:
Code: Select all
iptables -A FORWARD -i eth0{LAN} -d {OpenVPN server public IP} --gw {OpenVPN server tunnel IP}
Check the correct sintax, because am low on iptables,
Re: Cannot access server IP
Posted: Tue Oct 11, 2011 7:53 pm
by akmalhisyam
i have another question,
how to monitor clients bandwith usage?
I prefer a web GUI..
Re: Cannot access server IP
Posted: Tue Oct 11, 2011 8:19 pm
by Mimiko
For a GUI monitor - try googling and search. I don't know anyone except a full iso linux based system with GUI and firewall and internet shaping.
Usually for bandwith monitur is used "iptables" statistics and "interface" statistics.