Ubuntu Networking :: How To Remove An Interface (tun0)

Sep 20, 2010

i am using openvpn on my laptop. I had to give the laptop for repair so i swapped the hdd in another laptop.

Now i have a tun0 relict in my system, so openvpn creates a tun1 interface and messes up all the routes.

So i am wondering how can i delete the tun0 interface from my ubuntu?

View 3 Replies


ADVERTISEMENT

Networking :: Failed To Remove VLAN Interface?

Feb 11, 2010

My Linux machine's all Ethernet ports are connected to Cisco 2960SCG switch. Linux machine is having two Ethernet cards. First one is using "e1000" Ethernet driver and the second one is with "nxge" Ethernet driver.

Problem is; I am successful while trying to delete VLAN interfaces over motherboard PCI Ethernet card, but if i try the same on other PCI card the following messages are coming,and soon system getting hanged.

Message from syslogd@ at Wed Feb 10 17:48:11 2010 ... localhost kernel: unregister_netdevice: waiting for eth5.390 to become free. Usage count = 4

Bofore using nxge based Ethernet card I used e1000 based only, for that also I had same problem.

[root@localhost ~]# ifconfig eth5.390
eth5.390 Link encap:Ethernet HWaddr 00:21:28:21:DB:D1
inet addr:192.168.155.4 Bcast:192.168.155.255 Mask:255.255.255.0
inet6 addr: fe80::221:28ff:fe21:dbd1/64 Scope:Link

[Code]....

View 4 Replies View Related

Networking :: How To Monitor The Traffic Of Tun0

Dec 18, 2010

How will I monitor the traffic of tun0 ?

View 5 Replies View Related

Networking :: Why Tun0 On Client Is Not Getting An Ip Address

Apr 17, 2010

why tun0 on my client is not getting an ip address?

client config:

Code:

client
dev tun
proto udp
remote 66.219.29.99 1194
resolv-retry infinite

[code]....

View 2 Replies View Related

Networking :: Route Internet Traffic Over Tun0?

Mar 28, 2010

I have eth0 and tun0. tun0 is a VPN tunnel going over eth0. Everything on the other end is setup and working fine, when I type Code: traceroute 4.2.2.1 I see my the ping is going over 192.168.2.99 (eth0). When I then type Code: route add -net 4.2.2.1 netmask 255.255.255.255 dev tun0 traceroute 4.2.2.1 I see ping is going over 10.8.0.1 (tun0) instead of eth0, so that is working

What does not work however is when I do Code: route add -net 0.0.0.0 netmask 0.0.0.0 dev tun0 traceroute 4.2.2.1 I get no ping! I believe the problem is because all traffic is routing over tun0, which means even the VPN tun0 needs to go through eth0, it can no longer do this. Is there a way around this where I can route everything except for 114.77.31.26 (which is my VPN gateway for tun0)?

View 18 Replies View Related

Networking :: TUN - TAP Driver With IPv6 - Tun0 Does Not Deliver Info To User Space

Oct 26, 2010

I use an application that encapsulates IPv4 packets in an IPv4 tunnel using the TUN/TAP driver in Linux. There is a fancy protocol used between the 2 layers. This software works like a charm.

I have started modifying the source code in order to send IPv6 packets in an IPv4 tunnel. So far, the software seems to work fine but the information (packets) does not seem to make their way back to the user space.

I initiate an ICMPv6 packet with ping6. It gets in the tun0 interface. The software makes the IPv4 encapsulation and sends the information out of the system. The ICMPv6 echo reply comes back to the system with the corresponding encapsulation. The software removes the encapsulation and writes the packet in the tun0 interface. The ping6 application never receives ICMPv6 echo reply.

I have confirmed the integrity of the transaction using tcpdump on the tun0 interface. The interface comes up with the "inet 6 addr" only. The interface has the flags "UP POINTOPOINT RUNNING". The RX/TX counters are incrementing and no drops are observed at the interface level.

How can I troubleshoot this problem? There seems to be a lost link between the tun0 driver and the user space applications. The system uses SuSE Linux Enterprise 10 SP1. This is based on kernel 2.6.16. This is quite old.

View 3 Replies View Related

Networking :: Set A Route For Eth1 - DHCP Clients - To Reach Tun0 - Openvpn Server - CentOS

Sep 21, 2010

I have openvpn tunnel setup between two CentOS servers. One of the CentOS servers also acts as a DHCP server for some client computers.

Server A= OpenVPN server
Server B= OpenVPN client (connects to Server A with OpenVPN)

The two CentOS servers can ping each other (172.16.0.0/24) via the tun0.

However, client computer connected to Server B (DHCP server) can't reach 172.16.0.1 (which is the OpenVPN server).

I think I am missing some routing in my "ip route show". Following is the full picture:

What command can I issue to get this fixed? something along ip route add?

There is no firewall service on both end. service iptables stop! I can't bridge eth1 and tun0 as DHCP server might mess up the other side. I can't do a push of "redirect-gateway def1" because then clients loose their IP as they send DHCP requests to Server A.

View 2 Replies View Related

Networking :: Route Eth2 TCP Packets To Tun0 With IPTABLES And IP RULE/ROUTE?

May 8, 2011

I have 3 network interfaces on my Linux Router :

Interface - Gateway - Type

Code:

br0 - 192.168.0.1 - Internet
eth2 - 192.168.1.1 - LAN
tun0 - 10.0.0.2 - VPN (via br0)

What I'd like to do is to route all TCP packets coming from eth2 to tun0 where a VPN client is running on 10.0.0.2. If I delete all default routes and if I add a new route to tun0 like :

Code:

route del default
route add default gw 10.0.0.2

Everything is fine, and everyone on eth2 can reach the Internet using the VPN access. Now the problem is that my VPN client does not allow any other protocols other than TCP. And I also want to allow VPN access only to eth2, no other LAN nor the router itself. use iptables to filter any TCP packets and mark them, so they can be sent to tun0, while any other packets can reach the Internet via br0 (192.168.0.1). I found on the Internet that we can mark packets before they get routed. Using the following commands :

Code:

iptables -t mangle -A PREROUTING -j MARK --set-mark 85 -i eth2 -p tcp --dport 80
ip route add table 300 default via 10.0.0.2 dev tun0
ip rule add fwmark 0x55 table 300

First of all, --dport 80 never work... :/ I wanted to filter TCP 80 packets coming from eth2, but none of them seems to be HTTP packets... oO (very strange...). Nevermind, I decided to forget about the --dport option. I use the "iptables -L -v -t mangle" command to see how many packets are marked, and it is working fine, all TCP packets coming from eth2 are marked. Now the problem is that none of them are routed to tun0 they are all respecting the "route -n" rules... and not the "table 300" rule I have created.

View 4 Replies View Related

Ubuntu :: How To Remove The Netbook Interface

May 24, 2010

I'm using the Ubuntu 10.04 Netbook Remix and therefore I have the built-in netbook interface: (pictured)
תצלום מסך-1.jpgIs there any way to remove this and get the standard desktop? because in this one I don't really have a desktop and can't create Shortcuts to specific files and folders.

View 9 Replies View Related

Networking :: ATT Uverse DHCP Not Assigning To Red Interface Interface On Smoothwall?

Feb 14, 2010

I just had an ATT Uverse RG installed. However my Smoothwall router that previously worked fine with the ADSL SpeedStream is no longer accepting an address assignment DHCP ip address from this new gateway. (3800HGV-B)Any thoughts ideas or experience working with this hardware? ATT only supports Windows and Mac

View 2 Replies View Related

Networking :: Prevent Auto Up An Interface At /etc/network/interface File ?

Jul 18, 2011

I have a ppp0 entry with post-up options like this

mapping ppp0
map none photon-plus motorola
map timeout: 12

[code]...

View 8 Replies View Related

Ubuntu :: Remove Shortcuts In Laucher Of Unity Interface?

Aug 6, 2011

I am using the Ubuntu 11.04 and also windows 7 in my system. So when i opened the D drive which is NTFS file system in Ubuntu it creates a shortcut is the launcher. Previously when i had Ubuntu 10.04 shortcut appeared on desktop. Guys tell me why this happens i mean why shortcut appears in launcher or desktop .Is there any method to remove this?

View 2 Replies View Related

Ubuntu :: Safely Remove Application - Losing Desktop Interface

May 16, 2011

After a fresh install of 10.04, there are many applications which I will never use. I am just scared to remove them, because if I try, I end up losing my desktop interface. And which ones can I safely remove?

[Code]....

View 1 Replies View Related

CentOS 5 :: Send Specific SIP Traffic Only Through Tun0-00?

Sep 20, 2010

I got to establish an OpenVPN connection between two server and I have dhcpd on the client server which feeds a few SIP phones. All these phones are supposed to the register server through the tunnel.Here is the network structure:

Client CentOS:
eth0: 192.168.0.0/24
eth1:192.168.100.0/24
tun0:172.15.0.0/24
DHCPD: feeding above eth1 and all the phones with 192.168.100.0/24

If I ping 172.15.0.1 from the the Client CentOS it works all fine. Everything pings and I can even do SSH. However, the phones which obtain their ip through eth1 on the same server can not reach the 172.15.0.1. I think it's a route issue here. Can you please guide me to the right direction as to how to forward certain traffic through tun0 and leave the rest of the traffic to go through eth0?

I don't want to turn on IPTABLES as this is time consuming for me now and there is VPN setup. It has to do with setting up the routing but I am not sure.

View 4 Replies View Related

CentOS 5 :: Tunnel DHCPd Traffic Through Tun0?

Sep 21, 2010

Here is what I need to accomplish but somehow not getting where I need:

Server A:
-OpenVPN Server
-NIC1 = Internet (vnet - public IP address)
-Tun0 - 172.16.0.1
Server B:
-OpenVPN Client - Connects to Server A as a Client.

[Code]...

View 4 Replies View Related

Ubuntu Networking :: Can't Get Traffic Across Interface

Feb 2, 2011

I've got 4 or 5 of these TRENDnet USB network adapters ( TU-ET100c ) that I use frequently when I'm configuring firewalls or IPS devices for customers. I use them in combination with VirtualBox to test. They've always worked great until my new laptop I just got, and I put 10.04 on it. Previously I was on 9.x. Sometimes they will give a link light, other times not. And when they do the interface shows that it's up, but I can't get any traffic across the interface.

[code]...

View 3 Replies View Related

Ubuntu Networking :: No WLAN Interface On 11.04?

Apr 29, 2011

Today I upgraded from 10.10 to 11.04. After accidentally turning off the computer during the upgrade, booting into recovery mode, remounting the file system as writable and finishing the upgrade, it worked just fine.

However, I can no longer use any wireless networks. Wired ethernet works fine, but the wireless inteface won't even show up when I run ifconfig. When I first installed 10.10, it worked instantly and I was able to use it during installation.

I have an HP Compaq nx7300 laptop with a Broadcom BCM4311 network card.

View 1 Replies View Related

General :: Unable To Use GUI Interface Meant Graphics Interface?

Apr 11, 2011

i am using windows 7 in my laptop and linux is installed on virtualBox but my problem is the screen is showing small in virtualbox is there any way to enalarge the screen to show like windows screen? i did before by using VGA setting but it made problem me i was not able to use GUI interface i meant graphics interface
it was just showing me Command Prompt.

View 8 Replies View Related

Ubuntu Networking :: Wired Interface Gone After Suspend

Mar 21, 2010

First I must say I love Ubuntu Netbook Remix. I purchased an Acus 1005HAB Eee PC last week and immediately installed UNR. The redesigned Applications menu is awesome. I've had a few bumps here and there, mainly with the internal mic (wanted to use Skype). In an attempt to get the internal mic working, I installed some of the linux-backports modules as instructed by some of the forum postings here. It seems as though installing the backports modules may have affected my network interfaces, as they now act funny after resuming from suspend. The wireless comes back, but just says "device not ready" (not worried about wireless right now). However, the wired interface won't come back at all after suspend. I must reboot the machine to get eth0 to be recognized.

I read through lots of forum posts about similar issues, but most of them had to do with the wireless interface, not the wired. I saw some posts talking about adding SUSPEND_MODULE instructions to some /etc/pam.d files, but I got the impression those were for NVidia network cards, not the internal cards present in the Eee PCs. I purged the linux-backports modules I had installed for Alsa (mic and speakers) and rebooted the machine, but still have the same problem so now I don't know if that's what caused it. Both wired and wireless were working flawlessly after resuming from a suspend when I first installed UNR, so I know it's possible!

View 9 Replies View Related

Ubuntu Networking :: Can't Reach Any Host With Either Interface

Mar 30, 2010

I am running a server that needs both a wired and wireless connection with static IPs, with wireless as the default link. I'm using the SMCWUSB-G for wireless. I was running Debian for a while and had some routing tables set up as in [URL].... Everything worked until I recently switched to Ubuntu Server 9.10. After the switch a weird behavior showed up: if wlan0 is down, eth0 works fine. But if wlan0 is up, I can't reach any host with either interface (even nameservers or the gateway I am supposedly connected to). ifconfig indicates that nothing is wrong. It's really not clear what is causing this problem. It seems like something has to be wrong with both the wireless hardware/drivers and the routing tables in order for turning wireless on to interfere with "ping -Ieth0".

[code]...

View 9 Replies View Related

Ubuntu Networking :: Loopback Interface Not On Startup?

Apr 20, 2010

I own an Ubuntu Server 9.04 on a remote dedicated server. Since a few days (?) the loopback interface is not 'up' on reboot : I only have eth0 (which works fine).Here is my /etc/networking/interfaces (did not change since server initialization):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface

[code]....

View 3 Replies View Related

Ubuntu Networking :: Restoring USB Wired Interface ?

Jun 18, 2010

I've been working on a koala system, trying to set it up as a wireless AP with a pair of wired interfaces. The hardware itself is a small Nvidia ION platform with a built-in NIC and a bunch of USB ports, so I decided to set it up with a single wired USB NIC and a wireless USB NIC. For wired, I settled on a TrendNet TU2-ET100. Initially, this NIC worked perfectly on with no hackery required, plugged in and off it went, assigned as eth1 on the system.

For wireless, I've tried a couple of different units, both of which required use of the compat-wireless drivers to get recognized. I'm still having problems with that, but I'll deal with that later. In building and installing the compat-wireless drivers, it appears to have messed up the included drivers for my TrendNet USB NIC. Now when I boot the box, it comes up with the following error:

And from there, the NIC won't show up any longer - no eth1 visible in ifconfig -a. Clearly, some alternate driver (usbnet?) from compat-wireless has messed up the asix driver from being able to start up. Any ideas on how to get that restored?

View 2 Replies View Related

Ubuntu Networking :: Interface Doesn't Come-up On Startup

Nov 27, 2010

I have a server with 3 interfaces. Only one of them comes up after boot tho (the one with the cable plugged in). When I start dhclient the others show up in ifconfig... Could it be just cause there is no cable plugged in them? Or then how do i bring them up automatically without having to issue dhclient myself after boot?

View 1 Replies View Related

Ubuntu Networking :: Routing Over Certain Interface Using Iptables?

Feb 24, 2011

I am establishing a VPN connection with a Cisco VPN server, but only want outgoing connections to a certain set of IP addresses to actually go through the VPN. I tried something like this:

Code:
sudo iptables -A OUTPUT -t mangle -p tcp -d 111.222.0.0/16 -j ROUTE --oif tun0
but keep getting

[code]...

View 4 Replies View Related

Ubuntu Networking :: Eth0 Interface Went Missing

Mar 16, 2011

I have already tried reloading the drivers, restarting the interface (which is missing) and every other solution I found on this forum (well... not exactly all of them but many of them) uname -a gives Linux hostname 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 GNU/Linux

[Code]....

View 3 Replies View Related

Networking :: Possible To Access Web Interface ?

Apr 2, 2009

is it possible to access any application is not in /var/www/html/ via web interface ?

View 5 Replies View Related

Networking :: Actually Uses Interface Name Mapping?

Apr 12, 2010

Who actually uses interface name mapping? Why, and what advantages do you get out of it?

View 1 Replies View Related

Ubuntu Networking :: VPN Interface MTU Size \ The Packets Come With The Don't Fragment Bit Set?

Feb 20, 2010

For learning purposes i've set up a vpn between a laptop (running ubuntu) and a pc (running windows). The 2 computers are on the same lan. The VPN server is set on the laptop, and as a guide i used this tutorial:The problem is that the mtu on the ppp0 interface is 1396 and the mtu on the eth0 interface is 1492 so in order to pass packets from the et0 if to the ppp0 if, the laptop needs to fragment the packets, and here is where the problem appears: the packets come with the don't fragment bit set. I've tried lowering the mtu of the eth0 if but that didn't work. The only way i managed to make this work is setting the ppp0 mtu size to 1492. The thing is that setting the mtu and mru in the pptpd-options file to 1492 doesn't do anything (at least to solve this problem) and the only way to set the mtu of the ppp0 if is to manually set it using: Code:sudo ifconfig ppp0 mtu 1492 The issue with this is that every time the connection resets i have to enter the command.

View 2 Replies View Related

Ubuntu Networking :: Can't Connect To Wicd's D-bus Interface / Make It Possible?

Mar 12, 2010

I've installed ubuntu 9.10 using a minimal install and started from there installing the rest of the things I needed.
I'm running KDE4.4 and Wicd 1.6.1.

Problem is, wicd worked fine, but I don't know what happened before I got this annoying problem.

After logging into KDE, wicd asks me for my password in order to connect to the network-device. After filling that in, I get the message code...

As you can see in the logging, internet is working fine. I manually have to start wicd-client and I get an extra wicd-icon in the taskbar showing me the signal strength as it should do.

I've been searching a lot, but can't find anything about this, except a lot of people having the same errormessage, but they have some errors in the wicd.log too.

View 2 Replies View Related

Ubuntu Networking :: ERROR While Getting Interface Flags: No Such Device

Apr 9, 2010

I am having an odd problem with a program I'm trying to run which is supposed to connect to a network. The messages printed when I start up the program are:

SIOCSIFNETMASK: No such device
192.168.11.50: ERROR while getting interface flags: No such device
SIOCADDRT: File exists

One reason this is particularly odd is that the network itself appears to be working fine, otherwise. I can connect to the internet on my computer and everything, but the program is not able to connect to it, for whatever reason. I've tried tinkering with the settings but nothing worked.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved