macfan
Occasional Visitor
I was running .38_1 and just updated to .41 to be sure that didn't fix it.
I have a Time Warner business class cable modem connection set to bridge mode. I have a AC-68U that has the public IP as wan. I'm using a DDNS service to make that WAN IP available to me as a domain name.
I have a cheap wifi router setup in infrastructure mode that exists to make an ethernet-only device accessible to the network. That device doesn't support DHCP, so has been assigned 192.168.100.25. I have enabled manual assignment and reserved that IP in DHCP.
If I'm on my wifi network, I can access the domain name and port and get my device as expected. But if I'm outside the network, it fails. SSHing to webserver outside my network and trying to connect, curl times out:
[~]# curl -v vpn.artifacturestudios.com:79
* About to connect() to vpn.artifacturestudios.com port 79
* Trying xx.xx.xx.xxx... Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
I found info on how to check whether the request gets to iptables and it does. It increments when I try to connect, even though it ultimately fails. It increments identically when I make the query from inside the network. Here is the output:
xxxxxxxxx@RT-AC68U:/tmp/home/root# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 619 packets, 87192 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:1194
135 18795 VSERVER all -- * * 0.0.0.0/0 xx.xx.xx.xxx
Chain INPUT (policy ACCEPT 324 packets, 32307 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 146 packets, 18644 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 147 packets, 18704 bytes)
pkts bytes target prot opt in out source destination
234 15458 MASQUERADE all -- * eth0 !xx.xx.xx.xxx 0.0.0.0/0
0 0 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0xd001
Chain DNSFILTER (0 references)
pkts bytes target prot opt in out source destination
Chain LOCALSRV (0 references)
pkts bytes target prot opt in out source destination
Chain VSERVER (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008 to:192.168.100.25:80
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:79 to:192.168.100.25:80
134 18735 VUPNP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain VUPNP (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27163 to:192.168.100.36:27163
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27164 to:192.168.100.36:27164
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27161 to:192.168.100.60:27161
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27162 to:192.168.100.60:27162
I've tried many variations of disabling/enabling firewall, port forwarding, dhcp reservations, etc. I created the second port forwarding 79 to see if that helped. Nothing works from the outside. But the same exact domain name works fine from the inside even though it resolves to the external ip. Since I set it to bridge mode, I can't get to the cable modem's admin page. I guess I can try connecting directly to it and see if there is anything there that might be causing it. But it's mounted up high in our shop so not a easy task. Is that my best next step? I tried installing tcpdump, but on 38_1 at least, iPkg gave the error ipkg: can't load library 'libipkg.so.0' which I suspect is because $PATH didn't include the new directories (I had to run it from /jffs/asusware.arm/bin but I wasn't sure how to fix that.
Michael
I have a Time Warner business class cable modem connection set to bridge mode. I have a AC-68U that has the public IP as wan. I'm using a DDNS service to make that WAN IP available to me as a domain name.
I have a cheap wifi router setup in infrastructure mode that exists to make an ethernet-only device accessible to the network. That device doesn't support DHCP, so has been assigned 192.168.100.25. I have enabled manual assignment and reserved that IP in DHCP.
If I'm on my wifi network, I can access the domain name and port and get my device as expected. But if I'm outside the network, it fails. SSHing to webserver outside my network and trying to connect, curl times out:
[~]# curl -v vpn.artifacturestudios.com:79
* About to connect() to vpn.artifacturestudios.com port 79
* Trying xx.xx.xx.xxx... Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
I found info on how to check whether the request gets to iptables and it does. It increments when I try to connect, even though it ultimately fails. It increments identically when I make the query from inside the network. Here is the output:
xxxxxxxxx@RT-AC68U:/tmp/home/root# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 619 packets, 87192 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:1194
135 18795 VSERVER all -- * * 0.0.0.0/0 xx.xx.xx.xxx
Chain INPUT (policy ACCEPT 324 packets, 32307 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 146 packets, 18644 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 147 packets, 18704 bytes)
pkts bytes target prot opt in out source destination
234 15458 MASQUERADE all -- * eth0 !xx.xx.xx.xxx 0.0.0.0/0
0 0 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0xd001
Chain DNSFILTER (0 references)
pkts bytes target prot opt in out source destination
Chain LOCALSRV (0 references)
pkts bytes target prot opt in out source destination
Chain VSERVER (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008 to:192.168.100.25:80
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:79 to:192.168.100.25:80
134 18735 VUPNP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain VUPNP (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27163 to:192.168.100.36:27163
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27164 to:192.168.100.36:27164
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27161 to:192.168.100.60:27161
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:27162 to:192.168.100.60:27162
I've tried many variations of disabling/enabling firewall, port forwarding, dhcp reservations, etc. I created the second port forwarding 79 to see if that helped. Nothing works from the outside. But the same exact domain name works fine from the inside even though it resolves to the external ip. Since I set it to bridge mode, I can't get to the cable modem's admin page. I guess I can try connecting directly to it and see if there is anything there that might be causing it. But it's mounted up high in our shop so not a easy task. Is that my best next step? I tried installing tcpdump, but on 38_1 at least, iPkg gave the error ipkg: can't load library 'libipkg.so.0' which I suspect is because $PATH didn't include the new directories (I had to run it from /jffs/asusware.arm/bin but I wasn't sure how to fix that.
Michael