I need to provide internet access through openvpn to multiple LAN networks .
each LAN has a windows PC with openvpn client on it. All the other PCs in the same LAN should use the windows with the openvpn as their default GW. the openvpn server is at the Amazon EC2.
I followed the following procedure:
http://holgr.com/blog/2009/06/setting-u ... azons-ec2/
and now the windows PC with the openvpn client can access the public internet through the openvpn server in the cloud (working!). the remaining open issue I have now is to connect the other PCs (in the same LAN) to the internet through the same openvpn tunnel.
I configured the windows open vpn server as IP FORWARD (registry...) and set the default GW of the other LAN PCs to the openvpn client PC.
I can see that the packets get to the windows PC and go to the tunnel - reach the server - but they never go out from the server out.
ifconfig 192.168.2.2 192.168.2.1
#dhcp-option DNS 172.16.0.23
ifconfig 192.168.2.1 192.168.2.2
keepalive 10 120
the iptable conf is:
OSTROUTING ACCEPT [0:0]
REROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -s 192.168.2.0/24 -d 0.0.0.0/0 -o eth0 -j MASQUERADE
the openvpn server (in amazon EC2) ip is 10.234.241.124 - tunnel 192.168.2.1
the opevpn client (in my home LAN) IP is 18.104.22.168 - tunnel 192.168.2.2
the other PC in the LAN is 22.214.171.124 with DG 126.96.36.199
so ping (or web browsing) from 188.8.131.52 (the openvpn client) is working to yahoo.com for example (through the tunnel). BUT same ping from 184.108.40.206 to yahoo.com is going through 67.138 to the openvpn server but never goes out from the server.
BTW security is not important in this case and not certification is needed (just tunneling)
Thanks for the help,
Scripts to manage certificates or generate config files
1 post • Page 1 of 1
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Oct 10, 2012 3:50 pm