Networking :: Have 2 Internet Providers At Office And Want To Use A Single Router To Route Them Both?
Jul 8, 2011
I have a weird issue with source routing on a linux box.The plan goes like this:I have 2 internet providers at my office and i want to use a single router to route them both ( i don't need load balancing or failover). I just want access to either provider based on the ip i use on my pc. The first provider, let's call it RDS, is simple: i've got an RDS_IP, RDS_MASK and RDS_GW.The second provider is complicated, we'll call it INES. I have a INES_IP, INES_MASK, INES_GW and they also gave me a subnet of public ip's: ILAN_NET which i have to route myself through INES_IP.I also have a third nic with an local ip: LAN_NET and an alias for the INES subnet: ILAN_NETthe router has dhcp enabled, giving by default ip's from LAN_NET and using the default gw, RDSI have snat for the LAN_NET to go through RDS.
If i enter an ip from the ILAN_NET, instead of routing in through the INES_GW, it also goes through RDS_GW.the routing i've used for about 5 months has worked perfectly untill one day, when it just stopped. this is my setup:ip route add $RDS_MASK dev $RDS_IF src $RDS_IP table rdsip route add default via $RDS_GW table rdsip route add $INES_MASK dev $INES_IF src $INES_IP table inesip route add default via $INES_GW table inesip route add default via $RDS_GWip rule add from $RDS_IP table rdsip rule add from $INES_IP table inesip route add $LAN_NET dev $LAN_IF table rdsip route add 127.0.0.0/8 dev lo table rdsip route add $ILAN_NET dev $ILAN_IF table inesip route add 127.0.0.0/8 dev lo table ineswhat puzzles me the most is that this setup has worked, and now it doesn't .... without any changes on the router.I've tried everything save for a format/reinstall.
View 2 Replies
ADVERTISEMENT
Mar 23, 2010
My roommate has a slow ADSL provider, and i have a much faster cable connection. He has his own residential gateway, and as do i. The goal i am trying to accomplish is to share 2 printers (1 behind each residential gateway) and also files between computers on the different LAN segments, but not share ISPs or DHCP servers.
Thus far, i have configured my residential gateway's DHCP server to have control of the 192.168.1.0/24 network and his gateway's DHCP server controls the 192.168.0.0/24 network. We've got a Slackware 13.0 Linux box connected on the 192.168.0.0/24 network which currently just serves a web page and accepts e-mail for a domain. My knowledge of networking fails me here as I'm not sure what piece of equipment i would need to buy to solve this puzzle (bridge or router). I know iproute2 can do wonderful things on Linux, and i figure it would be easier to just shove a NIC or 2 in the Linux box and make it do what i need instead of buying more networking equipment.
View 1 Replies
View Related
Aug 21, 2010
I have a linux router with 2 physical ISPs and a VPN tunnel that all my traffic passes through. I would like to setup a rule to redirect all traffic from one internal IP address (10.0.0.x) through the physical link only. My current script is as follows.
iptables -F
iptables -X
echo 1 > /proc/sys/net/ipv4/ip_forward
[code]....
My goal is to do something similar to the mangle on the tor traffic, but for an entire host.
View 2 Replies
View Related
Sep 18, 2010
Problem Summary: - Linksys WRT54G dd-wrt NOT able to route when in Router mode
Env:
- Linksys WRT54G running dd-wrt v24 firmware
- LAN Subnet: 10.0.0.0/8
- WAN Subnet: 172.16.0.0/16
- Linux FC13 configured as a IPv4 router
- LAN 172.16.0.0/16
- WAN ISP/Public IP
[Code]...
View 4 Replies
View Related
Apr 22, 2011
I am using Debian 5 and I have some networking experience, however I want to learn to do this the best way possible. I have a Debian box with two nics and I want to connect that to a switch and use my Debian box as a router basically, as well as having a firewall setup within that too.
Should I use iptables to set up nat or the route command or what? I just want to know the group of tools to use in order to set up my network. Network diagram: Internet <------> Debian Box <----> switch <----> hosts I found some guides but they are for linux 2.4 and i'm not sure if they are right.
View 1 Replies
View Related
Jan 13, 2011
How to organize in one server the Internet from two providers (ADSL) ?
View 1 Replies
View Related
Mar 10, 2009
I have a 4.7 VPS web server on the net and it works very well. I am intending to upgrade it to Centos 5.x and have been having a play using VMWare Appliances and VMWare Player. I have therefore installed a local 4.7 applicance (all works well) and a 5.2 appliance (can't get basic internet connectivity).
I am running VMWare in Vista (apologies) and am connecting via a broadband modem (which effectively presents a serial modem to the computer via a USB interface). Using VMWare I am hooking this up to either the 4.7 appliance (works fine) or the 5.2 appliance (detects fine and connects but there is a problem). I think the issue with 5.2 is a firewall or a routing issue
I have prepared a report of the most common things people would need to know. The 5.2 appliance can see the USB device (lsusb), connects fine and obtains an IP and DNS addresses (wvdial) but ping fails. However the same on the 4.7 appliance works fine - I can use yum, ping and lynx etc. I have turned off the firewall on both appliances, but something is still getting in the way in 5.2!
***********************************
CENTOS 5.2 - ROUTING ISSUES?
***********************************
* Have disabled the firewall using system-config-security-level
> lsusb
lsusb
Bus 001 Device 007: ID 0fce:d0c5 Sony Ericsson Mobile Communications AB
[Code]....
View 7 Replies
View Related
Mar 4, 2010
My ISP has given me 3 IP addresses to use for the internet (76.148.200.3, 76.148.200.4 and 76.148.200.5).
If I do a "wget whatismyip.com" or netcat into another server, I am appearing as 76.148.200.3.How do I change my route (command line) in linux to route internet traffic through 76.148.200.5?
Code:
# 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
auto lo
code....
View 9 Replies
View Related
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
Nov 21, 2010
My Ubuntu Box has 3 interfaces. eth0 (Internal 192.168.1.0/24)eth1 (External ISP DHCP)eth2 (External ISP Static IP)I need the outgoing traffic to internet for 1 of the internal pc (192.168.1.10) to only go only go through eth2
View 4 Replies
View Related
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
Feb 4, 2010
After trialling ubuntu on my home comp, and getting brilliant results, i've now migrated my work computer too. Now, i can't connect to the internet or office network. I'm on a small office wired network. When i was on XP all the settings were on 'utomatic' - didn't need to input an IP, DNS, subnet etc. Now i Can't even ping the router.I've browsed around various other threads and can't find a working solution. I've tried inputting various settings in ubuntu connection settings, but still cannot get it working. (was hoping it would be automatic, as it was on my home comp).
View 1 Replies
View Related
Dec 22, 2010
I have been using ubuntu for more than 3 months now . I was wondering if could use LAN and Internet simultaneously in windows, why that should not work in ubuntu? I tried as much as I could, searched different forum and thought there is no way I can get around with it until recently I found a solution in a forum. For your information I use ppoe for connecting to Internet.
The solution was as simple as running this simple command sudo ifconfig eth0 192.168.x.x netmask 255.x.x.xI have replaced those x with my desired number. It worked like a charm! Now I could browse LAN shares and Internet simultaneously! How to do it and forget it? I mean I don't want to do it every time I dial my connection.
View 9 Replies
View Related
Mar 24, 2010
I messed up my Karmic install on my laptop trying to get wireless networking connection to behave better I'm not really sure what I did, but the problem I have is that, though it connects to my wireless network, it does not get a route to it. Any attempt to reach the router with a ping yields a destination unreachable. Trying to fix it in true hack fashion, I tried messing around with the static routes. I added an explicit route for my router (route add 192.168.0.1 wlan0) with no avail. I ensured there was a default route to the router which is a gateway outside of my LAN (route add default wlan0 gw 192.168.0.1). I have another route to my LAN network with a gateway of "*". I've done all this but the results are the same.
So, I'm interested in recommendations to fix this. Is there some networking setup/install procedure I can rerun? Does a recovery boot work? Or is it best to go back and reinstall Karmic? Are there other places that you might suggest I look to in order to fix this?
View 2 Replies
View Related
Apr 7, 2010
My requirement is to route ssh sessions from a single head node to multiple slave nodes. So what i want is, for a client there is just one point of entry (master/head node) to ssh into, it evaluates the load on the slave nodes connected on to internal network and routes the ssh session, kind of a ssh load balancer. what open source solution i can apply for my problem?
View 1 Replies
View Related
Apr 29, 2009
I would like to add a static route, however I do not understand what is meant by the Address setting below
GATEWAY2=10.241.58.62
NETMASK2=255.255.255.224
ADDRESS2=10.241.57.32
Does this mean any addresses beginning with 10.241.57.32 are routed over the gateway 10.241.58.62 an address range
View 3 Replies
View Related
Mar 18, 2010
How do I do a download speed test when comparing Hosting Providers?I'm on a Macbook Pro - wondering if there's an ap for this?Also, I have accounts at each provider with a 100mb file, but I'm guessing I'm closer to one than the other? How would I make it fair?
View 4 Replies
View Related
Apr 21, 2010
is there a possibility to connect to my router admin zone from internet using wan ip? from lan I can do that using 192.168.x.x IP but when Im in work and something go wrong at home how can I check configuration of my router from outer world instead of lan?
View 7 Replies
View Related
Jul 1, 2010
I'll state the issue and then give whatever extra details are needed. I'm running Ubuntu 10.xThe Linux box is connected to a router via ethernet. That Linksys router is bridged to an AT&T router.The bridging is working fine. The AT&T router's page shows the IP of the Linux box and lists it as a device. The Linksys page shows no errors with packet transmission and receipt. I can ping the Linux box from any client on the AT&T router, and can ping the AT&T clients from the Linux boxI had set the IP of the Linux box to192.168.1.201 while configuring that router, as I had set that router to 192.168.1.200 and it just seemed orderly.The network preferences show eth0 being set to auto dhcp, but the IP is still set to .201 so I don't know that it actually released or renewed.
View 5 Replies
View Related
Feb 21, 2010
just installed Ubuntu Netbook remix on my acer aspire one, and come across a problem Ive never faced before. Im able to Connect to my router (and access it through the internal ip address) but as soon as i try access anything outside of my network there is nothing!
This i found odd as first i thought it might have just been my Routers problem, but seeing as all my other computers were connected to it with no problems (wired and wireless) I quickly traced the problem back to the laptop.
After this i decided to see if after a simple update would fix the problem. so i connected it up through the Ethernet port once again it connects to the router but no internet! I have tried everything in my knowledge, but with no success!
View 9 Replies
View Related
Apr 29, 2010
I am trying to set up a basic router. I am running ubuntu server 10.04(just installed it today!) I have a verizon aircard(mobile broadband card) that is connected via usb. I am using wvdial to "dial-up" the connection. This works just fine and gives me a device on ppp0. There is a single lan connection on eth0 set up as a static ip address under /etc/network/interfaces. I don't even have any firewall running yet. For whatever reason, I can only get out on the internet when eth0 is set to get its ip address through dhcp. When I set it up with a static ip, I get for example:
$ping 4.2.2.2
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable.
$ping google.com
ping: unknown host google.com
If, however, after I have booted and the wvdial has been started, I set up eth0 as dhcp, run /etc/init.d/networking restart, set it back as static, run /etc/init.d/networking restart again, all work well. When I reboot the system with the static ip on eth0, and connect to wvdial, I get no internet again.
View 3 Replies
View Related
Aug 20, 2010
My internet works fine if I plug directly into the modem, but if I go through the router either using ethernet or wireless it doesn't work. I can access the router perfectly when using wireless and change settings and all that but cant access the internet. From what I've read it isn't a DNS issue because I cant get a result from pinging an ip, so I think it may be something firewall related but I'm unsure.
View 2 Replies
View Related
Sep 26, 2010
I am connected to my wireless network but can't connect to the internet. I have searched the ubuntu forums for solutions but none seem to work for me. I can post terminal outputs if required (I know that much).
View 8 Replies
View Related
Feb 11, 2011
How can I find the IP of a router wirelessly so I can use the second router for a better signal? (A farther reaching wireless card is what im trying to make it do)
also how can I find the subnetmask this way?
View 4 Replies
View Related
Feb 14, 2011
My router is a Netgear router with Comcast, and after going on Ubuntu for a couple hours just doing normal things, the Internet disconnects. Then I have to restart my computer and start everything over again. I check the router and everything seems to be fine, I even unplug everything on the router first (like I am instructed to do so if this sort of thing happens) to make sure that's not what is causing the problem. It has to be the Ubuntu system.
View 4 Replies
View Related
Feb 25, 2011
I am dual booting XP and Ubuntu 10.10 64bit on a Dell Latitude E6410 and I have a Linksys WRT120N router connected to my Modem.
So the weird thing is, under XP I can use the internet while connected to my router. Under Ubuntu I can't use the internet while connected to my router. But I can use the internet in Ubuntu if I connect to my neighbor's router called "linksys". So something happens when I connect to my router that makes Ubuntu not able to access the internet. But if I'm connected to my Neighbors router or if I use XP while connected to my router I can use the internet.
I have been using Ubuntu for about a year, so I'm getting better but still a noob. I've tried to figure out what's going on by looking at other forums and posts and trying to see if anyone has solved this. So far I've had no luck. This is also the first of many problem I have encountered that I have been unable to solve using online posts, and is the first problem that I have had to resorted to creating a post to try and fix.
View 1 Replies
View Related
Sep 1, 2011
I'm running a Natty machine wired to a TP-Link router (TL-WR841N) with additional Ubuntu and Windows machine on WiFi. Recently I've had some problems with connectivity on the Natty machine. Connectivity is fine as far as the router, but not beyond it. This applies to all browsers, Software Center, Aptitude and anything else you can think of. Now, normally at this point I would call my ISP, but the thing is, all other machines have connectivity. I've checked the cables twice and anyway, if it were them, I wouldn't be able to ping the router. Router has ping functionality to outside and it's working, have tried ubuntu.com and google.com. Also, connectivity between the wired and wireless machines is fine, pings are flying across the network beautifully.
View 5 Replies
View Related
Jul 30, 2010
I connect my internet using pppoe to may DSL modem with bridging mode, and it goes fine until I try to put a wireless router between my PC and the modem. After I configure both modem and the router, I can run my wireless network fine by connecting it from a laptop, but my PC is unable to reach the modem at this configuration.
PC has address 192.168.2.100
Router has address 192.168.2.2
Modem has address 192.168.2.1
all with netmask 255.255.255.0
With bridging configuration in modem and automatic detect configuration in the wireless router, the wireless network run well, except the PC cannot ping the Modem saying that
Code:
root@firefly:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
From 192.168.2.100 icmp_seq=2 Destination Host Unreachable
Looks like my PC, which has Slackware 13.0, don't know how to reach the modem even they are physically connected.
1. how can I configure the modem, PC, and router so that the PC can reach the router? Do I need to do add route gateway from the PC?
2. How can I configure internet connection from the PC (before I use PPPoE)?
3. How can I configure the modem, PC, and router so that the wireless network is on?
View 7 Replies
View Related
May 16, 2011
I just installed and configured Slackware on an old computer I am using as a router.
The internet works fine on the slackware box (router) but all of the computers behind it are having issues. When browsing, some websites work perfectly fine, while others are slow to load, and a few don't load at all. I'm not really sure where to start on diagnosing this, so any help would be appreciated.
Also whenever I restart the computer, I have to use this command before the DHCP server will start. What do I have to do to get it to start up with the computer?
Code:
View 2 Replies
View Related
May 8, 2011
How can I successfully SSH using SecureCRT from the Internet to my Centos Linux box at home behind the router? I have a DGL-4500 dLink router. I configured a Virtual Server in the router for SSH 192.168.0.182 Protocol 6 TCP public port 22 ? private port 22 Schedule Always Allow Inbound Filter Allow All. Further I Enable DMZ for 192.168.0.182. I got my Internet IP address through "what is my ip website." Now every time when I try to SSH, I get a message "The remote system refused the connection". Here is iptables -L command output;
[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
[Code]....
View 9 Replies
View Related