xYzNoob
Hey,
I am fairly new to this and I would need some help. I have searched the forum and googled and this question has been asked before but Always slightly different from my scenario so this is my setup:
Local router with WAN 192.168.1.0 IP Range behind this a DD-WRT Router configured as Repeater with its own IP Range of 192.168.3.0 this is the router that also has the OpenVPN server running on with an IP Range of the OpenVPN Network of 10.21.173.0 .
I have done Portforwarding from the Main router to the Repeater on port 443 which is the port that I run the OpenVPN server on. I am having a dynamicdns service running on the main router. I can connect to the OpenVPN server from outside of my network and access everything on the 192.168.3.0 Subnet (nothing on the 192.168.1.0) but I am unable to connect to the internet.
How can I establish an internet connection? I read something about static routes but didn't fully understand it. Or is it an option that I have to include in the server config?
Also why is it that when I am connected to the OpenVPN server from a public network and I browse the network in a FileExplorer E.g. Nautilus in Ubuntu I still see network shares from the public network and not the ones from my home network but If I directly connect to a share via smb://192.168.3.x/sharename so no external IP but an internal one I can do that without any problem?
How would I be able to access machines on the 192.168.1.0 network which is the one on my main router?
Server config looks like this in DD-WRT Router:
Additional Config:
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
server 10.21.173.0 255.255.255.0
max-clients 2
comp-lzo
dev tun0
proto tcp
keepalive 10 120
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
tls-auth /tmp/openvpn/ta.key 0
OpenVPN running on port 443.
iptables setup to allow the following:
iptables -t nat -A POSTROUTING -a 10.21.173.0/24 -j MASQUERADE
iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT
iptables -I INPUT 3 -i tun0 -j ACCEPT
iptables -I FORWARD 1 --source 10.21.173.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
Can anyone help :?: