Inexorable
I'm having a lot of trouble setting up my openvpn. I had the setup working perfectly except that the clients were still using their internet instead of the server's. I added the
push "redirect-gateway local def1 bypass-dhcp"
push "dhcp-option DNS 192.168.0.9"
commands but it hasn't helped. I'm really lost, here is my current server config:
port 1723
proto udp
local 192.168.0.1
dev tun
mssfix 1400
push "redirect-gateway local def1 bypass-dhcp"
push "dhcp-option DNS 192.168.0.9"
keepalive 10 120
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 192.168.1.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
ifconfig-pool-persist ipp.txt
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
The setup is that the server is installed on a PC (192.168.0.1) on my LAN, it connects to the internet through a router (192.168.0.9) on which I have the PC's address as the DMZ. The openvpn network connection is seperate form the lan connection (I had them bridged before and it didn't work either). I want the client to connect, be able to access the LAN, and get its internet from the router instead of its own internet connection. I would prefer if I didn't have to set a dmz on my router, and that i just forwarding the port 1723. I would also like to keep the 2 network connections on the PC separate. But I will take what I can get at this point, i just need to be able to connect and use the server's internet as well as access network devices on the LAN.
I will be very grateful to anyone who can help, thanks a lot!
maikcat
what OS is your openvpn server?
i am also a bit confused about the DMZ stuff.... :roll:
Michael.
Inexorable
windows 8 pro 64
the dmz effectively makes it so that all traffic gets routed to the PC, its like opening every port and routing them to one computer.
maikcat
redirecting traffic through openvpn can be achieved by 2 ways..
1) perfoming NAT on traffic leaving openvpn server to internet
or
2) setup routing & NAT on your server side internet router so it can route
back traffic to vpn server for requests originating from vpn clients & perform NAT
on their packets as well...
Michael.
Inexorable
i dont know how to do either of those. can you give me more details please?
maikcat
Inexorable
quick question, will the routing and remote access service have to be running for that to work, because i'm using openvpn because i can't use that service.
maikcat
RAS is used for NAT...
Michael.
Inexorable
that service makes my programs not close properly, I therefore can't use it, does anyone know a way to host a vpn server in windows 8 with internet passthrough without using the RemoteAccess service?
maikcat
Linux only... 🙁
Michael.
Inexorable
OK, thanks a lot. If anyone finds a way to host a vpn with internet passthrough on windows 8 without the RemoteAccess service, please let me know!