OpenVPN help network/netmask combination error

root@HP-OpenWrt:~# cat /etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option cachesize '1000'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option localservice '1'
	option ednspacket_max '1232'
	option confdir '/tmp/dnsmasq.d'
	list server '/mask.icloud.com/'
	list server '/mask-h2.icloud.com/'
	list server '/use-application-dns.net/'
	list server '127.0.0.1#5053'
	option doh_backup_noresolv '-1'
	option noresolv '1'
	list doh_backup_server '1.1.1.1'
	list doh_server '127.0.0.1#5053'

config dhcp 'lan'
	option interface 'lan'
	option start '121'
	option limit '130'
	option leasetime '12h'
	option dhcpv4 'server'
	option dhcpv6 'server'
	option ra 'server'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

I corrected the pool and still think it has something to do with the firewall. I can connect with lan ip but not wan ip.

Based on what I can see, it's not the firewall. It could be the ISP blocking ports or something else of that nature, but you have everything set correctly in the firewall.

Strange! I just turned WiFi back off and it connected so apparently the fact that WiFi was on seemed to cause the issue. I don't have much mobile data so now I'm questioning how it will behave when connected to someone else's WiFi.

Test it on wifi while at work/school/whatever, or invite yourself over to a friend or family member's house :slight_smile:

Thanks again for taking the time to help me figure this out!

you're welcome.... let us know if it works once you've had a chance to test on some other wifi network (I expect it will work).

I connected back home just fine from my buddy's WiFi.

Aeesome!

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

Are you very familiar with using OpenVPN on an ASUS router. My buddy has an ASUS that he wants to keep stock and I set up a VPN on it for him but the VPN clients end up getting dynamic IPs which will not work for his use case scenario. I followed this guide to assign static IPs and the clients get assigned the designated IPs when the script is active but it ends up killing client to client communication. I'm not sure where to ask for help regarding that. I posted in the OpenVPN on Reddit but the bots automatically took it down. https://dev.to/eslynn/assigning-static-ip-for-openvpn-on-asus-routers-4c73

I am not at all familiar with it. And it would be out of scope/off-topic for these forums unless the Asus router is running OpenWrt. Maybe the Asus support channels can help?

OK Thanks anyway!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.