Hi Guys,
I’ve been researching a bit for the last week or so on how to get my laptop to sync with my desktop over the Internet, but I’m unable to get it to work. When I’m on my local LAN at home, there is no issue - everything syncs as it should. But while I’m connected to other networks outside my home (and I’ve tried several) I cannot reach my desktop.
So basically, my home network is set up like the following:
((Internet)) --------- [Hermes] --------- [Pluto]
In that simple diagram, Hermes is my router, and Pluto is my desktop. Both are Debian (yes, my router is actually a Debian PC Tower).
Since there is no UPnP on Hermes, I figured I’d have to do this manually. That’s fine, so I Googled around and discovered I need to open port 22026 for global discovery. (I confirmed that Pluto has this port configured). So I opened port 22026 through iptables:
iptables -A INPUT -p udp -m udp --dport 22026 -j ACCEPT
Nothing. I then read that 22000 needs to be open for local syncing, but it isn’t necessary for syncing outside the LAN. So I enabled it anyway:
iptables -A INPUT -p tcp -m tcp --dport 22000 -j ACCEPT iptables -A OUTPUT -p tcp -m tcp --dport 22000 -j ACCEPT
Still nothing.
Then, I tried forwarding port 22026 directly to Pluto:
iptables -A FORWARD -i eth0 -p tcp --dport 22026 -d 10.10.96.10 -j ACCEPT
And darn it, my laptop still can’t see Pluto unless I’m connected to my home LAN.
I admit that I’m not an iptables expert or anything, but I would’ve thought what I had above should’ve worked. Does anything stand out that I may have missed?