connecting remote through firewall

Asked by Shobuz99 on 2014-10-24

I want to connect remotely from my Ubuntu 10.04 LTS laptop, to my home machine; which is also a Ubuntu 10.04 LTS laptop.
Internally I am able to connect through the internal IP address 192.168.1.123
because I have a rule setup to accept a connection from my remote laptop's IP address: 192.168.1.456, internally.
However, when I'm on the road, this won't work. Obviously I can't predict what the IP address of the remote location will be.

I don't understand your answer re: MAC address answer:
"Assign the same IP for a MAC address in the router. My router has a live connected device and I can assign one IP for once device."

I don't know the steps to do this.
I use a Linksys WRT54G wireless for my home router.
I'm also using the "SSH/SSL VNC Viewer" application to connect to my various computers
in my home network.
If I don't use the Gufw firewall, I can connect very easily, by setting up my home external IP address in
the "SSH/SSL VNC Viewer" application. But I need the firewall on for protection.

Can you give me some *explicit* details regarding the use of an IP address for a MAC address?
I'm not familiar with those steps. I don't want to mess up or damage my home router.
Thank you very much for your kind help.
~shobuz99

Question information

Language:
English Edit question
Status:
Answered
For:
Gufw Edit question
Assignee:
No assignee Edit question
Last query:
2014-10-24
Last reply:
2014-10-25
costales (costales) said : #1

Hi! I'm connecting like you.

> " when I'm on the road.......I can't predict what the IP address of the remote location will be."

My recommendation is http://www.noip.com/ ;) Free and awesome!

You need to open the port ssh (22) in your router to your internal IP.

Best regards!

costales (costales) said : #2

A little more information:
you'll use something like:
ssh <email address hidden>
no-ip will have your current dynamic IP :)

Shobuz99 (shobuz99) said : #3

Ok. I signed up for noip.com "free service".
I have already run into a problem with my router. I have an 'older' Linksys router: WRT54GS.
There is no "single port forwarding" feature on this router, only Port RANGE forwarding.
NOIP.com has instructions for a newer model Linksys router; which features "single port forwarding".
Therefore, I can't setup the router in the manner that the noip.com setup instructions advise.

Also, what section of MY router would allow me to use port ssh (22)?

Thanks for your continued help.

shobuz99

costales (costales) said : #4

A resume could be this:
 - Open the port 22 to your current internal IP: http://www.wikihow.com/Port-Forward/Open-Ports-on-a-Linksys-Router
    If you need a range, use IP:port to IP:same_port ;)
 - Create no-ip account: The no-ip will be as your domain.
 - Connect to ssh user@user_no_ip.no-ip.com
I can't help you with the router. This is different with every model. But you can always find in Internet a lot of manuals :)
Best regards!

Can you help with this problem?

Provide an answer of your own, or ask Shobuz99 for more information if necessary.

To post a message you must log in.