I have a 3g usb modem connected via usb to the PC. Dynamic ip. I need to connect to this PC as a server via ssh or ftp. As I've read on the Internet, I need:

  1. Configure Dynu Dns, in order to track the change of ip on the PC. I made all the necessary settings and Dynu Dns tracks the external dynamic ip.
  2. Skip ports for ssh and ftp.

iptables -t nat -A PREROUTING -p tcp -m tcp -d --dport 22 -j DNAT --to-destination

iptables -t nat -A POSTROUTING -p tcp -m tcp -d --dport 22 -j SNAT --to-source

Anyway, I can not connect remotely to this PC.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.