I already use Putty and SSH as a proxy for http traffic, but I want something that will work more easily with other applications. I also want to access services on my lan in a secure manner, so I figured a VPN would allow all that at once.
Everything on the VPN works fine but I cannot access the internet at all. I can ping systems on the VPN, but if I try to ping a website address, for example, it says "ping: sendmsg: Operation not permitted". I am testing all this from compA (also inside the lan) - does that make a difference?
Here is my openvpn.conf on the server (compB):
local 10.0.0.30 # Lan is on 10.0.0.0/24
port 11194 # custom port
proto udp
dev tun
ca privnet/ca.crt
cert privnet/server.crt
key privnet/server.key
dh privnet/dh1024.pem
server 10.0.10.0 255.255.255.0
push "route 10.0.10.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 10.0.10.1"
ifconfig-pool-persist ipp.txt
keepalive 10 120
max-clients 10
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 4
Are there any problems with this config? If not, it must be a firewall/routing issue? I have verified that ipv4 forwarding is enabled and I have been reading tutorials regarding setting up my firewall (shorwall) for OpenVPN, but I've had no luck.