The tag has no wiki summary.

learn more… | top users | synonyms

15
votes
3answers
74k views

How to set static routes in Ubuntu Server?

I have used Ubuntu since Ubuntu 8.10; today I'm working with Ubuntu 12.04 Server. I am having difficulty keeping static routes on booting. I would usually put the route commands /sbin/route add ...
15
votes
2answers
17k views

How to set up dual wired and wireless connections?

My laptop has both wireless and a wired connection capabilities. Can I connect to a router A using wireless and a separate router B using wired ethernet at the same time without having to switch back ...
12
votes
2answers
47k views

How to make IP forwarding permanent?

I know that I can enable IP forward by echoing 1 to /proc/sys/net/ipv4/ip_forward, but how can I make this permanent? By the way I want another method rather than start up scripts, is there any?
12
votes
1answer
23k views

How can I make VirtualBox guests share the host's VPN connection?

Question When I start my VPN on my ubuntu desktop computer which acts as a router, the attached subnet loses internet connectivity, but is still accessible (LAN). Ideally, I would like to know how to ...
11
votes
2answers
9k views

persist port routing from 80 to 8080

I use amazon EC2 instance which works via ubuntu. By default according security restrictions I can't bin my application to port 80, so I just bind it port 8080 and then set routing redirect from port ...
8
votes
2answers
1k views

How to tell what interface a TCP connection will go out on?

I have a server with multiple ethernet interfaces. What's the easiest way to tell what interface an outgoing TCP connection will go out over? The results of "netstat -rn" is greek to me, so if your ...
8
votes
1answer
14k views

How to route all internet traffic through Tor (the onion router)?

Could you explain how to route all internet traffic through tor? I am using Ubuntu I really don't know how to do it. Actually I am using tor for twitter only, and I'm afraid of DNS leak. So I need to ...
7
votes
1answer
19k views

Forwarding traffic between 2 interfaces

I have 2 VLANs connected to a 'router'. All the machines can ping other machines within their own VLAN and the router. The router can ping all of the machines. I am trying to get machines to talk to ...
7
votes
2answers
42k views

Set up permanent routing (Ubuntu 13.04) [duplicate]

I have 2 connections: wlan0 (gw: 192.168.1.1) and eth0 (gw: 192.168.2.1). My default connection is wlan0, but I wanted some websites load through my eth0, so I set up routing for those websites/IPs ...
7
votes
1answer
2k views

How is the loopback device implemented?

The loopback networking interface is a virtual network device implemented entirely in software. But how is this implementation actually accomplished and how do you manipulate it? As far as ...
7
votes
2answers
3k views

Sharing an internet connection through the Ethernet port

I have a small living room PC (Bohica, running fully-updated Ubuntu 10.10/Maverick) connected to my HDTV that I use for web browsing and media streaming. It connects via WiFi (wlan0) to my Fedora ...
6
votes
2answers
3k views

Connecting to other LAN computers using their names [duplicate]

I have a LAN at home with my desktop and my laptop. IP addresses are allocated dynamically to both, so the IP number keep changing. I try to connect from one to the other using places->Server, and in ...
6
votes
2answers
15k views

Default gateway changing

I am using 3 ethernet interfaces on Ubuntu but when I restart, the default gateway is changing to a different interface. Each time I boot I have to change default gateway back to the eth1 by deleting ...
5
votes
3answers
5k views

Use two networks at the same time?

I want to use Ubuntu 10.10 Server in a classroom, a computer lab whose bandwidth is provided by a local cable ISP. That's no problem, though the school network has an IP printer that I want to use. I ...
5
votes
1answer
2k views

Hybrid wireless network repeating

Summary: I'd like to use two Ubuntu computers to extend/compliment an existing wireless access point. I have a network which currently looks a bit like this: What the diagram doesn't show is the ...
5
votes
1answer
13k views

Understanding my route table

this isn't programming at all, but I've seen related topics so I thought why not. I am using ubuntu and currently trying to learn basic networking. I read a lot of theory, so I understand the terms ...
4
votes
2answers
783 views

Two hosts can't ping one another

I have two hosts in my network. Both are connected to my router. From another host, I can ping and ssh into both of them. Both have an excellent connection to all other hosts. However, they cannot ...
4
votes
1answer
16k views

Two Network cards and ip forwarding

I want to make "Ubuntu 11.10" act as a router. I have two LAN interfaces. Let's say interface A' IP is 172.16.1.10 ; interface B's IP is 192.168.1.10. How can I configure Ubuntu so that ...
4
votes
2answers
11k views

How to setup multiple WANs with load balancing?

What is the best way to setup multiple WAN's into a Ubuntu distro and load balance? I have two internet connections, one static and one dynamic and I need to combine and load balance them. I have been ...
4
votes
1answer
3k views

Ubuntu Server 12.04 as a router. Problem with DNS?? Or Routing table?

I have a virtualbox lab made up of 4 Windows 2008 R2 servers (DC/DNS,SQL,SHAREPOINT, EXCHANGE) that are configured with static ip addresses with NIC's attached to Internal network. Everything works. ...
4
votes
2answers
6k views

Using Ubuntu 14.04 as router with iptables, clients can't go online. Probably DNS issue, iptables setting needed

CORRECTION 3: SOLVED! I needed to add the the official DNS server of my departement's VLAN as DNS to the clients. I've read through a large number of posts about iptables issues when using Linux as ...
4
votes
0answers
3k views

Integration multiple internet connections ISPUnity vs Ubuntu Bonding

I have Ubuntu 13.04 with 2 ethernet cards and a WiFi card. I also have 3 ISP connections. I have to configure linux to use all 3 connections. My main concern is to increase outgoing bandwidth (FTP ...
3
votes
1answer
917 views

Network Manager breaks manual routes

I have Ubuntu 13.10, Saucy Salamander x64 running as a guest in VirtualBox (with Windows 7 as a host). I wrote this /etc/network/interfaces because I need to add a large number of permanent, manual ...
3
votes
2answers
763 views

How to find the size of internal routing table efficiently?

I need to know how we can find the size of the kernel routing table. I have knowledge that the routing table is stored in /proc/net/route I am presently using wc to count the number of characters in ...
3
votes
2answers
5k views

How to set routes for my vpn connection

In my previous question I was asking about setting up vpnc connection. I've installed network-manager-vpnc so now I can configure all this stuff right from network manager gui. I have got this pretty ...
3
votes
0answers
845 views

How can I tell Ubuntu to keep the correct routing table?

Ubuntu sets a wrong routing table if the router is switched off and on again: Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 ...
2
votes
3answers
6k views

Trying to enable IPv6 results in a “No route to host” error

I'm configuring a dual stack network on a KVM server using static IPv4 and IPv6 addresses furnished by my provider. I input all addresses, nameservers and gateways as required when installing Ubuntu. ...
2
votes
1answer
3k views

Forward TCP Connections with Iptables

I receive connections to my server from several ip addresses I want to route these connections just like rinetd does but based on the ip the connection is coming from to connect to a specified host. ...
2
votes
2answers
7k views

openssh server is refusing connections by blocking or resetting

On a quite fresh install of Ubuntu 14.04 (machine1), I have openssh-server with a completely default config. When connecting from machine2 on the LAN, with an empty ~/.ssh, I get the following debug ...
2
votes
1answer
2k views

Weird issue with iptables redirection

I am trying to redirect all incoming traffic on UDP port 5060 to port 56790, and all outgoing traffic from 5060 to the port 56789. I used these iptables rules: iptables -t nat -I PREROUTING -p udp ! ...
2
votes
2answers
603 views

route table explanation

I'm a newbie. Recently I used the command ip route ls to print my route table. Here is the content: 111.211.3.192/26 dev wlan0 proto kernel scope link src 111.211.3.205 metric 2 I'm curious about ...
2
votes
1answer
4k views

When I try to add repositories, why are ubuntu's keyservers timing-out?

Something is rendering receiving keys from keyserver.ubuntu.com impossible and I'm not even sure where to begin in trying to resolve this. As an example, we'll use the Spotify linux app found here: ...
2
votes
1answer
4k views

How do I setup routing through a PPTP VPN?

I have created a PPTP connection back to my office, and managed to setup routing as suggested in this question, so that everything outside the office LAN keeps going to my current default gateway. ...
2
votes
1answer
266 views

How to define gateway for 192.168.1.1 as 10.0.0.x with `route add`?

Let's say eth0 has an ip 10.0.0.10 and its gateway is 10.0.0.1. I want to add a route for 192.168.1.1 to use this interface. What is the difference between these 3 commands? route add -host ...
2
votes
1answer
237 views

Configuring two internet connections

First, I'm know there's lots of topics about this kind of problem but I can't found a solution to my specific problem. In my setup I have a Linux server with three interfaces: ethLAN for LAN with IP ...
2
votes
1answer
2k views

Help configure multiple network interfaces

I'm running Ubuntu inside a VM on my work laptop. I have to run my VPN software on my VM Host system and need access to my VPN network from within my Ubuntu VM. I can set my VM's network interface to ...
2
votes
1answer
1k views

Bridge connection: Ubuntu keeps modifying routing table

I have set up a bridge connection from my mobile phone connected via USB to my laptop running Ubuntu 12.04 to another computer connected via ethernet cable. The bridge thus connects usb0 and eth0. I ...
2
votes
0answers
35 views

Routing traffic over p2p1 and tun0 correctly

I have been trawling these questions and trying many different solutions to get this working, but I seem to have a problem with getting my routing set up correctly. I have a box installed in a network ...
2
votes
0answers
90 views

Ubuntu router with 2 NICs, traffic stops and I don't understand why

I'm currently running a Beaglebone black with bone-ubuntu-14.04-console-armhf-2014-08-13-2gb.img (or a more recent version), which acts as a firewall / router. It has two network interface, one USB ...
2
votes
1answer
1k views

OpenStack Neutron outside communication through router doesn't work, local between VMs does

I am pretty lost with this one for few day now and can't move further. Any ideas will be very welcome. My private net for VMs: 10.5.5.0/24 Outside link via 192.168.22.0/24 (my router's IP ...
2
votes
1answer
429 views

help understanding iptables router script and error

Hello I have this routing script that I'm using which runs when all the network interfaces are up: #!/bin/sh PATH=/usr/sbin:/sbin:/bin:/usr/bin # # delete all existing rules. # iptables -F ...
2
votes
1answer
2k views

OpenVPN - Routing issue

Server: Ubuntu 11 (Openvz VPS) Client: Windows 7 Issue: clients connect successfully to VPN, but loss of internet access once inside the VPN. Facts: Everything mostly defaults Is a ...
2
votes
1answer
102 views

Networking and Traffic routing question

Hello I had a few of questions related to networking, let me list them in a logical order: 1) Can multiple interfaces be bridged together so that it results in increased bandwidth? 2) Can wired and ...
2
votes
0answers
403 views

iptables, forwarding between interfaces

I'm trying to setup a router using iptables. But, after a lot of examples I've tried, I can't get anything to work. My idea is to setup a box in between my Cisco and the main switch for firewall, ...
2
votes
1answer
787 views

My server does not forward packets between interfaces. What am I missing? [closed]

I'd like to get my Ubuntu 11.04 server to route packet between its two network interfaces. The two ethernet interfaces (eth0, eth1) work apparently well as such. Both have static IP addresses ...
1
vote
2answers
4k views

how to route 3 NICs and 3 subnets

I am trying to setup routing between 3 subnets using an Ubuntu 12.10 server with 3 NICs. I would like to be able to have all these subnets route between one another as well as be able to access the ...
1
vote
1answer
4k views

Using Ubuntu as a router?

I've seen many tools to use Ubuntu as a router in which an internet connection could be shared from Ethernet over Wifi or vice versa. I'm looking to achieve this except with 2 Ethernet connections: ...
1
vote
1answer
32 views

Routing and OpenVPN

O have small problem with routing and OpenVPN. After start of VPN connection all traffic goes through my OpenVPN server. But my server is behind ADSL router with 16/2 MBit Download/Upload speed. So i ...
1
vote
1answer
1k views

How to configure a second IP address and bind it to a VBoxHeadless virtual machine?

I've requested my ISP to dedicate me a second Internet IP address and have got it. Now I need to configure it (I've never had any experience with using multiple IP addresses on one network interface) ...
1
vote
2answers
143 views

Are there any packages in Ubuntu that allow routing on application layer level?

I would like to route packages received by a VM host to different VM guest, on basis of application layer, in particular domains given in urls. It is impossible to route on network layer level, since ...