unskilled
I have the server that can ping to the client and the client that can ping to the server, both work. I have a DD-WRT flashed router as the server, showing that the client is connected, and an Asus Merlin router as the client, showing that its connected. I want the traffic going through the client to have the same WAN address as the server but the IP address isnt changing. What am i doing wrong? I am not sure what logs i need to send but let me know and i can. Thanks!
unskilled
I feel as if my Server config file would help?? The 192.168.20.1 is my LAN IP address. Do i need to add something else maybe?
"
# Route traffic from this new network into my existing network
push "route 192.168.20.0 255.255.255.0"
# DNS server is 10.0.0.1, a.k.a. my router.
push "dhcp-option DNS 192.168.20.1"
# Use the tun0 device (so we can refer to it later)
dev tun0
# Ping every 10 seconds, and restart after 120 seconds of inactivity
keepalive 10 120
"
TinCanTech
unskilled
I'm not a smart man.....
I put this in the server config file:
push "redirect-gateway def1 bypass-dhcp"
still nothing.
What am i missing?
unskilled
so now it's:
# Route traffic from this new network into my existing network
push "route 192.168.20.0 255.255.255.0"
# DNS server is 10.0.0.1, a.k.a. my router.
push "dhcp-option DNS 192.168.20.1"
# Use the tun0 device (so we can refer to it later)
dev tun0
# Ping every 10 seconds, and restart after 120 seconds of inactivity
keepalive 10 120
push "redirect-gateway def1 bypass-dhcp"
unskilled
my firewall is this below:
# Accepts incoming traffic via port 1194 UDP
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
# Allows the VPN client access to router internal
# processes, e.g. Web admin, SSH etc
iptables -I INPUT 3 -i tun0 -j ACCEPT
# Allows connections between VPN clients, if
# client-to-client is enabled in OpenVPN server
iptables -I FORWARD 3 -i tun0 -o tun0 -j ACCEPT
# Allows connection from local VPN to the internet
iptables -I FORWARD 1 --source 192.168.20.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.20.0/24 -j MASQUERADE
# Allows connections from local network to VPN network
# and other way around (br0 is LAN and WIFI)
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
So it includes the iptables (not sure if the addresses are correct?). The address i put in my local ip address. I saw an example online where someone put those as 10.8.0.0/24 so not sure which one is right?
I see that the example also has "push "dhcp-option DNS 10.8.0.1"" in the server config file and i have mine as 192.168.20.1. I have tried both and neither seem to change anything..???
Still at a complete lost
unskilled
fixed it.......................