I have been trying to have an owncloud server on my jetson nano. The installation and setup for the server is done and it works. But for some reason the server is not accessible on my LAN.
When I use the browser on my jetson, it allows me to go to the site http://<ip-address> but any other device on the same network is not able to connect to it. This makes me think that it is a firewall issue. I still have been unable to find a solution to this, would love to have some ideas.
I am unable to use ufw due to some issues present in the jetson os. I have already unsuccessfully tried to add a rule using iptables:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
But it is all to no avail. I am sure I am missing something small but cannot put a finger on it yet. Do let me know how to debug and/or to solve it this problem.
Additional Detials:
Jetson Nano 2GB with Jetpack 4.6.2
I don’t think there is any firewall rule by default, but possibly there is. The problem now is that if you’ve done something with firewall rules, then perhaps it isn’t the default, but may have saved anyway. The reason I wonder about this is that firewall rules would be tested after regular network setup is tested. FYI, what follows is true for Ubuntu 18.04 without any regard for being a Jetson (the Jetson itself will be unrelated to most of this).
For the Jetson, how is it connected? WiFi or wired? How about the other systems, are they using WiFi or wired? Are they all on the same router?
Next, on the Jetson and on one unit which cannot reach the Jetson (preferably wired since it simplifies some things), give the output of each of these (and make sure we know which unit it is this applies to, Jetson versus “other”):
route
ifconfig
If WiFi is involved, also “iwconfig”
If firewall might be involved, list the means of this, e.g., is it “ufw”? If “ufw”, then what is the output of:
sudo ufw status
I don’t know if this will find the issue, but it is a good start and anyone debugging this would want this same information.
One last question: Is this your own router without other users inside of it? I ask because there is good reason for added security like firewalls if in a dorm with lots of untrusted users on the same router. It is good to know if this is just your router, or if it is “out in the wild”.
My Jetson along with other devices are all connected to the same router. Everything is using WiFi. I am not using ufw since any attempt at using it throws an error mentioned at this link.
The output for the commands are:
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default reliance.relian 0.0.0.0 UG 20600 0 0 wlan0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 docker0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.29.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
A starting note which might be important, but might also be irrelevant: The URL about the UFW issue is related to IPv6, which is the newer IP address scheme. I would not be surprised if something is choking on IPv6 since not everything seems to have implemented this “bug free”. At times it is worthwhile to tell interfaces (such as via nm-connection-editor) to use only IPv4. I do not know if this will matter or not, but your “veth5d809ca” interface uses IPv6. Can you say what the “veth5d809ca” device is?
Also, you showed only one instance of those commands. Are they from the Jetson? What do you see on the system at the other end? The two have to work together, thus I’m looking for whether both (simultaneously) are set up to talk to each other.