Networking Forums

Networking Forums > Computer Networking > Linux Networking > create inbound tunnel through firewall.

Reply
Thread Tools Display Modes

create inbound tunnel through firewall.

 
 
Unruh
Guest
Posts: n/a

 
      06-17-2005, 10:31 PM
have a machine at home on ADSL. The service provider has suddenly decided
to switch from public IP addresses to non-routable addresses, without any
warning. Now, part of what I need to do is to connect from outside (eg from
my work system) to that home machine, and also to have mail delivery to and
from that home machine from the work machine.
I can ssh out to my work machine from home, but obviously not the other
way. Is there some way that I can ssh from home to work and then use that
open connection to connect to the home machine from the work machine?
Eg to allow mail delivery from work to home, or allow me to work on the
home system from work?

Thanks.

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      06-17-2005, 11:14 PM
On 17 Jun 2005 22:31:00 GMT, Unruh wrote:
> have a machine at home on ADSL. The service provider has suddenly decided
> to switch from public IP addresses to non-routable addresses, without any
> warning.


Really?
How do web page packets get back to your box.

I guess they could have a big NAT box.

I would goto
http://gemal.dk/browserspy/
when you get home, to see what your ip address really is.

I remember when I was on dialup, I would dial in to work and fire up a
xterm then drive in. Once there I would use ps to find the xterm connection
and get the display value. That was about 6 years ago and cannot
remember the details.

 
Reply With Quote
 
Captain Dondo
Guest
Posts: n/a

 
      06-17-2005, 11:49 PM
Unruh wrote:
> have a machine at home on ADSL. The service provider has suddenly decided
> to switch from public IP addresses to non-routable addresses, without any
> warning. Now, part of what I need to do is to connect from outside (eg from
> my work system) to that home machine, and also to have mail delivery to and
> from that home machine from the work machine.
> I can ssh out to my work machine from home, but obviously not the other
> way. Is there some way that I can ssh from home to work and then use that
> open connection to connect to the home machine from the work machine?
> Eg to allow mail delivery from work to home, or allow me to work on the
> home system from work?
>
> Thanks.
>


Why not run a tunnel from the home machine to work? Then stuff whatever
you want down the tunnel.

vtun.sf.net is what I use but it doesn't seem to be maintained much
anymore...

openvpn seems to be the replacement for it. It doesn't matter which way
the tunnel is running, it's symmetric....
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      06-18-2005, 12:40 AM
Bit Twister <(E-Mail Removed)> writes:

>On 17 Jun 2005 22:31:00 GMT, Unruh wrote:
>> have a machine at home on ADSL. The service provider has suddenly decided
>> to switch from public IP addresses to non-routable addresses, without any
>> warning.


>Really?
>How do web page packets get back to your box.


>I guess they could have a big NAT box.


Yup.


>I would goto
> http://gemal.dk/browserspy/
>when you get home, to see what your ip address really is.


The address of their nat box, which of course does nothing for me.


>I remember when I was on dialup, I would dial in to work and fire up a
>xterm then drive in. Once there I would use ps to find the xterm connection
>and get the display value. That was about 6 years ago and cannot
>remember the details.


 
Reply With Quote
 
Benny Nielsen
Guest
Posts: n/a

 
      06-18-2005, 09:53 AM
Unruh wrote:

> have a machine at home on ADSL. The service provider has suddenly decided
> to switch from public IP addresses to non-routable addresses, without any
> warning. Now, part of what I need to do is to connect from outside (eg
> from my work system) to that home machine, and also to have mail delivery
> to and from that home machine from the work machine.
> I can ssh out to my work machine from home, but obviously not the other
> way. Is there some way that I can ssh from home to work and then use that
> open connection to connect to the home machine from the work machine?
> Eg to allow mail delivery from work to home, or allow me to work on the
> home system from work?
>
> Thanks.


You can use one of the free DNS services around. Type free dns in google
search field and pick one.

During bootup you send your IP to the DNS provider of your choice, and your
domainname gets updated.

Benny
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      06-18-2005, 11:15 AM
Unruh wrote:

> have a machine at home on ADSL. The service provider has suddenly decided
> to switch from public IP addresses to non-routable addresses, without any
> warning. Now, part of what I need to do is to connect from outside (eg
> from my work system) to that home machine, and also to have mail delivery
> to and from that home machine from the work machine.
> I can ssh out to my work machine from home, but obviously not the other
> way. Is there some way that I can ssh from home to work and then use that
> open connection to connect to the home machine from the work machine?
> Eg to allow mail delivery from work to home, or allow me to work on the
> home system from work?


While you may be able to use ssh for some things, such as mail, why not use
a proper vpn? Many distros include OpenVPN and there's also a version
available for Windows. The only thing you'll have to remember, is that the
vpn has to be initiated from your home, because of the address translation.

Incidentally, those "non-routable" addresses route just fine. However,
they're supposed to be blocked before reaching the internet. There's
nothing about them, that inherently prevents routing.


 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      06-18-2005, 11:17 AM
Captain Dondo wrote:

> openvpn seems to be the replacement for it. It doesn't matter which way
> the tunnel is running, it's symmetric....


It will have to be initiated by the home system, because of the address
translation.

 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      06-18-2005, 11:19 AM
Benny Nielsen wrote:

>> have a machine at home on ADSL. The service provider has suddenly
>> decided
>> to switch from public IP addresses to non-routable addresses, without any
>> warning. Now, part of what I need to do is to connect from outside (eg
>> from my work system) to that home machine, and also to have mail delivery
>> to and from that home machine from the work machine.
>> I can ssh out to my work machine from home, but obviously not the other
>> way. Is there some way that I can ssh from home to work and then use that
>> open connection to connect to the home machine from the work machine?
>> Eg to allow mail delivery from work to home, or allow me to work on the
>> home system from work?
>>
>> Thanks.

>
> You can use one of the free DNS services around. Type free dns in google
> search field and pick one.


Given that he's got one of those RFC1918 local network addresses, that won't
do him any good, as he can't be reached from outside his ISPs network.

 
Reply With Quote
 
Benny Nielsen
Guest
Posts: n/a

 
      06-18-2005, 11:49 AM
James Knott wrote:

> Benny Nielsen wrote:
>
>>> have a machine at home on ADSL. The service provider has suddenly
>>> decided
>>> to switch from public IP addresses to non-routable addresses, without
>>> any warning. Now, part of what I need to do is to connect from outside
>>> (eg from my work system) to that home machine, and also to have mail
>>> delivery to and from that home machine from the work machine.
>>> I can ssh out to my work machine from home, but obviously not the other
>>> way. Is there some way that I can ssh from home to work and then use
>>> that open connection to connect to the home machine from the work
>>> machine? Eg to allow mail delivery from work to home, or allow me to
>>> work on the home system from work?
>>>
>>> Thanks.

>>
>> You can use one of the free DNS services around. Type free dns in google
>> search field and pick one.

>
> Given that he's got one of those RFC1918 local network addresses, that
> won't do him any good, as he can't be reached from outside his ISPs
> network.


Well he said he could with fixed IP. The suggestion just updates the IP
behind a given DNS name.
To reach a given computer on a LAN, you will have to redirect port 22 (for
ssh) to that computer.

Benny
 
Reply With Quote
 
kermit
Guest
Posts: n/a

 
      06-18-2005, 05:37 PM
Unruh wrote:

[...]
> I can ssh out to my work machine from home, but obviously not the other
> way. Is there some way that I can ssh from home to work and then use that
> open connection to connect to the home machine from the work machine?
> Eg to allow mail delivery from work to home, or allow me to work on the
> home system from work?
>


Yes.

ssh -N -R 12345:localhost:22 your-work-machine

will connect to your system at work and establish tunnel from port 12345
there to port 22 (ssh) on your local system. Now you can do everything
including setting up new tunnels from work to your home system.

There is a software (http://www.harding.motd.ca/autossh/) to monitor SSH
tunnel and restart it if needed; I have not used it myself. There are also
numerous frontends that help to setup and manage multiple SSH tunnels.

Beware that your provider is likely to drop connections once in a while
which may result in new mapping so old connections won't work. Here autossh
may be useful.

=arvi=
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create L2TP tunnel without IPSEC Andy Windows Networking 0 12-13-2007 07:17 PM
Unable to create PPTP tunnel between two DCs Sune T. Tougaard Windows Networking 3 03-30-2006 08:44 AM
How to create a VPN-tunnel between a ZyWall 10 and NetScreen 25 Jens Vejmand & Holger Danske Network Routers 0 06-11-2005 01:21 PM
firewall reports inbound events even though behind mn700 nat with no forwarding Broadband Hardware 1 06-30-2004 08:55 AM
firewall reports inbound events even though behind mn700 nat with no forwarding Broadband Hardware 0 06-29-2004 11:37 PM



1 2 3 4 5 6 7 8 9 10 11