Networking :: Setup Ip Tunnel In Different Locations

Apr 18, 2011

I have 2 linux servers in different locations. I need to setup a ip tunnel. I follow this steps on both servers:

Server1: ip tunnel add tun0 mode ipip local IP_Server1 remote IP_Server2 dev ethX ip l s tun0 up ip a a peer dev tun0

Server2: ip tunnel add tun0 mode ipip local IP_Server2 remote IP_Server1 dev ethX ip l s tun0 up ip a a peer dev tun0

After creating the tunnel everything is ok, but after a time(maybe some hours), I can't ping the other end of the tunnel (ping to IP_Server1 and IP_Server2 is ok all the time; the connection to internet is very reliable). I have tried "ipip" and "gre" mode, but same result. If I ping from two servers the other end of the tunnel, the connection is again established for some hours and ping is working in both directions.(if I ping only from one side the ping is not working) How can I resolve this issue for no longer having to log on both servers to ping the other end of the tunnel? If I use an crondjob to ping the other end of the tunnel at 2 hours everything is working fine for weeks, but I need other solution.

View 5 Replies


Networking :: Get An Icmp Tunnel Setup Using Ptunnel

Jul 23, 2011

So im trying to get an icmp tunnel setup using ptunnel. When I run it under the same network and use to connect to RDP, it works fine, however when go outside my network and connect in, it does not get anywhere. I can confirm that I have forwarded ICMP packets to the server (if I ping the external ip it will show the status of the server if I unplug it) and that the server is showing signs of registering it.

On the client it just tries to resend the packet "Resending packet with seq-no 0" Over and over Firewall is off for testing so thats not the issue.

View 2 Replies View Related

CentOS 5 Networking :: Setup A Network To Network VPN Tunnel Between Our Main Office And A Temporary Location?

Aug 12, 2009

I am attempting to setup a network to network VPN tunnel between our main office and a temporary location. This location need full VPN access back to the main office's network.Anyhow we have spent about 3 solid days attempting to make this work without any great success. Here is our network scheme for these two devices.

Network A (Main Office) (OpenBSD using isakmpd)
External IP: (obviously not the real IP)[code].....

View 2 Replies View Related

Ubuntu Networking :: Setup A Ssh Tunnel From Machine A To Machine B?

May 29, 2010

I can set-up an ssh tunnel from machine A to Machine B:-

fred@my-linux:~$ ssh -P myport

I can successfully logon to machine A to Machine B.

what address and port will my tunnel 'appear' on machine B? I want to send a stream back from B to A up the encrypted tunnel, not over the open network.

View 5 Replies View Related

General :: Setup VPN Tunnel With OpenVPN

Jan 31, 2010

I need to know the procedure to setup VPN between two network. i setup openvpn access server to do this easy. 1. Step by step procedure to setup VPN 2. Setup VPN with DHCP 3. How to check that open vpn is running successfully.

View 1 Replies View Related

General :: Backup / Setup A Second VPN Tunnel On A Fallback Gateway / Firewall On The Client Side

Mar 1, 2011

I've set up a Lan-to-Lan (routed) OpenVPN tunnel. For redundancy I want to set up a second VPN tunnel on a fallback gateway/firewall on the client side. Currently, both sides (server/client) know how to route packets across each others physical LAN. So no NAT is used. When the primary gateway (fw1) is connected to the VPN server all traffic runs via the fw1 tunnel. Than when the secondary gateway (fw2) connects to the VPN server and fw1 is still connected all traffic for fw1 will be delivered to fw2 and effectively destroying traffic intended for fw1. This is of course no problem if I first shutdown (fence) fw1, than set up fw2 to use the gateway IP address from fw1 and set up the VPN tunnel to the VPN server. Effectively replacing fw1 with fw2 on the client side.
However, I can't seem to find a decent howto.

I am also exploring the possibility to let both tunnels active and let OpenVPN (or another tool) decide how to route packets back and forth the different LANs. A virtual IP between two gateway's both running a VPN or something similar. This would be the preferred method of course. However, I don't know how to tackle this one but I'm pretty sure there are people out there who are happy to share their 2 cents.

View 3 Replies View Related

Networking :: Data Sharing Across Multiple Geographical Locations?

Mar 9, 2010

I am looking for a solution where the data to be shared across multiple locations through login. In this regard, the following options are required.

1) The files/folders created can be viewed by the group and the owner has an option to edit and delete. However, if required the owner/admin can grant permission temporarily.

2) log of files/folders being accessed

3) The access of files/folders is based on username and password.

One thing striking me is FTP Server to enable the above solution. If so, i just want a step by step guide. Otherwise, let me know any other better options.

View 1 Replies View Related

Networking :: Wireless Doesn't Work At Locations With A Sign-in Page?

Nov 17, 2010

Dell Mini 9, 2GB RAM, 32 GB SSD, Ubuntu 10.04 UNR . At Panera, and other places that have free Internet access but require signing in on a page they load, I cannot get on to the Internet. Their sign-in page comes up on my iPod Touch but does not come up on my DM9. This happens no matter which browser I have running on my DM9 (I have Firefox and Chromium). And since I can't sign in, I don't get onto the Internet. Initially I am connected to their router and the signal is strong but because I don't sign in (I'm assuming here), I am disconnected. What do I need to do to see their sign-in page so I can get connected. At locations that have no sign-in pages I have no problems whether or not a password is required.

View 3 Replies View Related

Networking :: Can't Establish Tunnel For VPN Over SSH?

Jul 20, 2010

I'm trying to create a VPN through SSH but encounter the following:

[18:42:11]root@bronzhip:/home/casey# sudo ssh -w 0:0 97.**.***.221 -i VPN
channel 0: open failed: administratively prohibited: open failed


View 6 Replies View Related

Networking :: How To Set Up Secure Web Tunnel?

Mar 24, 2011

I'm trying to set up a secure web tunnel at home I have an Ubuntu box (desktop), a Mac, and a Windows 7 box. I use all of them for different reasons. I want to be able to route traffic from my browser through my Ubuntu box. I have done this before with proxy servers abroad, but I want to do it using ssh and my box at home so I don't have to pay for a service i.e (Secure Tunnel)etc.

I followed the instructions at However, using my Win7 box, after I set the browser part per the instructions, I get no connection from the browser.

View 1 Replies View Related

Networking :: Multi-hop VNC Tunnel Over SSH

Oct 21, 2010

Is it possible to chain together multiple SSH tunnel hops in a single `ssh -L` command on the client side? I have two gateways I need to get through in order to access a remote host. For a normal SSH client connection, it's simple enough chain this all together by simply appending the additional SSH connection commands to the first one:Code: ssh gateway.1 ssh gateway.2 ssh

View 6 Replies View Related

Fedora Networking :: Can't Establish A Ssh Tunnel

Jun 20, 2010

I have a headless server, running Fedora 13. I want to make a ssh tunnel to that server from laptop that is also running Fedora 13. Logging into that server over ssh works well, X11 forwarding also works, but I can't establish a ssh tunnel.

At the moment I was trying to connect two small python tcp sample programs, that communicate through port 8000. Running them both on my laptop works well.

What I am trying to do is that I am making two seperate ssh connections to my server, let's say it's address is

1) I make a 'standard' ssh connection to it


And run the server program

2) I open another terminal window and make the tunnel


3) I open 3rd terminal window and try to run the client program, that is trying to connect to localhost:8000.

If I understand it correctly, the client should now connect to localhost:8000, ssh would discover that and send that data to port 8000. Then the server program on is listening on that port and should get that data and send "hello world" string back to the client. Then the client should get that, print it to stdout and exit.

Unfortunatly all what it does is that it just hangs for about ten seconds and then says "connection lost" (timeout?)

I have tried other programs, they also timout.

By passing the -v argument to ssh it outputs:


When I try to connect the client it prints four more lines:


So as you see, it says that the connection times out..Also can anybody tell what the "Unspecified GSS failure." means? The possible break in attempt is caused by connecting to the server using the address while being in the same local network with the server. If I connect using server's local ip address (ie., the message dissappears.

View 5 Replies View Related

Ubuntu Networking :: Create SSL Tunnel Over Ssh?

Oct 3, 2010

I Need to make an SSL tunnel over SSH, I need to create exactly an SSL tunnel,I have a situation like that, I heared it is possible,but don't know how to create an SSL tunnel over SSH i am having putty installed on my pc,So i think i can use putty for this purpose, But i don't know how to do this.

View 1 Replies View Related

Ubuntu Networking :: How To Create SSH Tunnel

Aug 3, 2011

I wanted to create an ssh tunnel but I do not know what commands to run .. my environment is as follows:
LAN Internet Office LAN
Home PC <-> Linux firewall <-> http server..

According to the above what I figure is that I have an internal web server at my job and I need to create a tunnel to access the web server from my PC in my home. I know I can do a port forwarding with the firewall but I don't want to publish this web server to Internet. My home PC and both servers (firewall and web) are ubuntu. My idea is create a ssh tunnel that forward port 8080 on localhost in my home pc, to the firewall (obviously with public ip), and the the firewall forward to port 80 on office web server at my job. Note that the firewall accepts ssh connections to port 22, same for web server...

View 2 Replies View Related

Networking :: Create Tunnel Between 2 Different Networks

Jun 8, 2010

i need possible direction on setting up a tunnel between 2 different network. The tunnel will be used by devices from the 2 different network to communicate with each other (for eg DevA and DevB).

DevA <-> Linux A <=====================> Linux B <-> DevB

View 3 Replies View Related

Networking :: How To Set Up Ssh Tunnel Through Http Proxy?

Mar 10, 2010

My school network uses a http proxy to access the internet, but I am dubious about the security, and so I would like to use http inside ssh to keep my data secure. I don't really know where to start on this, so a step-by-step guide, or links to resources, would be helpful.

View 2 Replies View Related

Networking :: How To Forward Ip Tunnel's Output

Aug 13, 2010

I'm trying to implement a routing short-cut solution, whose requirement is as following: server1(Linux) sends ip packets(destined to server3) to server2(Linux) via an ip tunnel between them, server2 forwards the ip tunnel's output (the inner ip packets) to server3. Each server has only one NIC and a public ip associated with it. All servers can communicate with each other. I'm sure the ip tunnel between server1 and server2 was configured correctly and worked well. server2's ip_forward was enabled too. On server2, I can capture the traffic on the ip tunnel interface, and they are originated from server1 and destined to server3. The problem is server2 does not forward the ip tunnel's output at all. On server2, I just run "echo 1 > /proc/sys/net/ipv4/ip_forward". Is there anything I missed for enabling ip_forward? Or originally, ip forward can't work on servers with only one NIC, can it?

View 3 Replies View Related

Networking :: IPTables / SSH Tunnel With 2Nics

Oct 6, 2010

I've been running a DebLenny system on the network which acts as the local gateway. It has 2 network cards and traffic is directed as follows:

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

However, I'd now like to put all the outgoing traffic through a remote system which will further handle the outgoing data (Squid, etc) via the PPPTP device. What would be the most efficient way by which I could achieve this?

View 1 Replies View Related

Networking :: Can't Ping Anything Behind The Server End Of The Tunnel?

Apr 5, 2010

I am building up a site-to-site OpenVPN tunnel between two locations. I am setting this up in two CentOS 5.4 boxes each containing two NIC's. I can get the tunnel up and running, and I can ping across the tunnel, however, from the client end of the tunnel I can not ping anything behind the server end of the tunnel. In other words, I can't ping anything on the server's LAN. On both servers, eth0 is the WAN side and eth1 is the LAN side.

OpenVPN server:
eth1 -
OpenVPN client-server:
eth1 -
I have IP forwarding enabled in the kernel on both machines.
[root@vpn01 openvpn]# cat /proc/sys/net/ipv4/ip_forward


I'm sure that the answer is right in front of me, but I can't seem to get it cleared up. I can't hit anything on the,, or networks from the client server.

View 14 Replies View Related

Networking :: Routing Subnet Over GRE Tunnel

Mar 1, 2011

Im trying to configure a GRE over IPSec connection between two subnets. The IPSec tunnel is opened and now I want to add a GRE tunnel over it.So, what I didn't understand is why I can't route my subnet over the tunnel, once the only route I have there says that it should route the tunnel IP over the GRE01 interface. Any hint? Thanks.

View 1 Replies View Related

Networking :: OpenVPN Can't Establish A Tunnel Via Fw2

Feb 10, 2011

I have two firewalls, one primary (fw1) and one fall-back/backup (fw2). On the LAN side the fw's reside in the same LAN segment. I have a client who wants VPN redundancy. So I configured two VPN tunnels for this client. One via fw1 and a backup via fw2. Since the default gateway on the VPN server points to fw1 only the tunnel via fw1 is established. OpenVPN can't establish a tunnel via fw2 because of the gateway and just sits there waiting...

View 1 Replies View Related

Ubuntu Networking :: Closing A Reverse SSH Tunnel?

Jan 31, 2010

so i start it with ssh -f -R 4096:localhost:22 and it comes up and someone can log in at the remote end. how do i close the tunnel from the initiating end ? netstat doesnt seem to identify my end of the tunnel , unless im looking for the wrong thing!

View 1 Replies View Related

Ubuntu Networking :: Browsing Via SSH Tunnel Very Slow

Jan 31, 2010

Browsing via SSH Tunnel very slow When browsing in firefox at work via proxy through ssh on my 8.04 server the speed is near dial up. I have compression enabled, tried restarting ssh, and rebooting the server but it remains so sluggish. At home the connection is quick but the speed is lost in translation once I ssh in. I also tried adding "UseDNS no" to the ssh config but that did not help with the slow login or any other speed issues.

View 5 Replies View Related

Ubuntu Networking :: Surf Anonymously Using A SSH Tunnel?

Mar 29, 2010

I tried this :


ssh -ND 9999 username@home_router_ip_address

and this is output :

�nani@jebe-kevu-ovaj-PC:~$ ssh -ND 999
Privileged ports can only be forwarded by root.
nani@jebe-kevu-ovaj-PC:~$ sudo ssh -ND 999


which password is he looking for exacly ? user nani is main user at ubuntu after he asked me for password i typed my nani user password and i got in , after how you can see he ask me for onather password i tried the nani�s password but nothing is heppening ?

View 1 Replies View Related

Ubuntu Networking :: Can't Create SSH-tunnel In Script?

Sep 17, 2010

I'm trying to run a script to execute the command

ssh -D port host

when my laptop connects to internet. I have placed the script in /etc/network/if-up.d/.The scripts is being run when it should, but the SSH-tunnel isn't created.I can however run the script manually, as root, and then the tunnel is created.

View 7 Replies View Related

Ubuntu Networking :: Connect Samba Through SSH Tunnel?

Nov 13, 2010

I have a server running Ubuntu Server 10.04 that is a VirtualBox/Samba/SSH server. I have port forwarding set up for ports 22 and 3389 (SSH and RDP) and I want to access the Samba share without opening any other ports. I can connect to it from my internal network, but I want to be able to access it from school. My best guess would be to tunnel the Samba port through SSH, but I don't know how. I will be connecting to it from Ubuntu 10.10 Desktop.

View 9 Replies View Related

Ubuntu Networking :: Start SSH Tunnel At Boot?

Feb 14, 2011

In the office I use firefox for my work items and chrome for my personal items. I currently use proxy switchy with chrome to browse through an ssh tunnel to my home server. The chrome/switchy part works fine.In order to do this I have to open a command window every morning and execute:ssh -p8181 -D 9999 user@myhomeserver.comThen the command window asks my password and I am up and running. (my ssh server at home is running on port 8181)Is there a way to script this so I don't have to open the command window and enter my password every day (and also to prevent a visible command window from being open and visible)

View 1 Replies View Related

Ubuntu Networking :: Route DNS Queries Through Tunnel Too

Jul 6, 2011

I set up a routed OpenVPN server. Everything works fine. But I'd like to route the DNS queries thru the tunnel too. So I added:


Can't find server name for address Non-existent domain Even thou I have a DNS server set up correctly (on the same server as the VPN) with recursion. I verified that by sending queries form external source, which worked fine. I suspect that the Bind server doesn't listen to the tun0-interface only eth0, but the Bind manual says it should listen to all interfaces by default. The server log shows:

named[9639]: client RFC 1918 response from Internet for

How do I get these DNS queries to resolve thru the tunnel?

View 9 Replies View Related

Ubuntu Networking :: Connect Through A Tunnel On A Different Server?

Jul 19, 2011

I use two Ubuntu machines, one at home and one at work. In order to connect to the machine at work from home I need to connect through a "tunnel server" that controls all the traffic to the machines at work.I am able to connect with ssh to the tunnel server and from the tunnel server ssh my own machine at work. My question is how do I retrieve files form my work machine to the home machine. How do I sync folders between the machines using rsync when the "tunnel server" is in between?

View 3 Replies View Related

Ubuntu Networking :: SSH Tunnel / Port Forwarding

Jul 28, 2011

I don't understand the concept of ssh port forwarding and tunneling.I was going to set up a remote desktop (vnc) connection to my grandmother's laptop that we'll give her soon so if something goes wrong i can fix it from here (she lives on the other side of the world). However, i've read using vnc plain over the internet isn't secure, and that i can secure it by running it through an ssh tunnel.That's what i've understood so far. However, from there on i get confused.

I'd have to run both an ssh server AND a vnc server on her laptop? So what i'd have to do is ssh into her computer, and then while logged on on her computer, somehow open a vnc connection back from the remote server to the local computer? Then i'd go back to my local computer and open a port where the vnc connection is waiting? From the concept, it would seem like i should be able to tunnel all the regular network traffic from the local computer to the remote one through ssh?

View 4 Replies View Related

Copyrights 2005-15, All rights reserved