Ubuntu Servers :: Dynamic Routing For Redundant Internet Links?
Jan 14, 2010
As far as I can tell, the server guides only explain a bit about what dynamic routing is, but not how to implement it.
My situation is this:
We require a server with 3 interfaces. One local, one to a vsat link and the other to a fibre link. The fibre will be the default route for Internet traffic but we want dynamic routing to automatically switch to the vsat link when the fibre link goes down (which happens fairly often in Zimbabwe!) and then switch back to the fibre link when it comes back up again.
The first option would be to handle dynamic routing on a Cisco router, but at the prices of Cisco devices here, it's not the most affordable option.
I have an Actiontec GT724WGR and I am having problems with my Ubuntu server. I set up a subdomain on freedns.afraid.org with my main computer's external ip. However whenever I use the link that was made it goes to my router configuration page instead of onto my server. I have already set up a static ip for my server enabled DMZ hosting and under port forwarding applied every single rule that applied to servers.
This one has been driving me nuts for some days now:My Gentoo box which is acting as an internet gateway has two point-to-point interfaces, ppp0 (PPPoE to my ISP) and ppp1 (PPTP VPN link to IPREDator). Packets from my local network are just routed through ppp0 and now the fun part starts: I want to MARK (netfilter...) all packets originating from one specific user on that box in order to use another routing table that will contain a default route via the ppp1 interface.Marking seems to work fine as does the second routing table. But quite mysteriously (at least for me), the packets sent out on ppp1 contain the wrong source IP address, namely the address associated with ppp0.So here is what ifconfig and friends tell me:Network interfaces:
Code: # ifconfig ppp0 ppp0 Protokoll:Punkt-zu-Punkt Verbindung
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)
I am sharing my DSL internet connection using a modem+wireless router (single device) to 5 systems. I want all my internet traffic to go through one of the linux boxes in my network.
The problem here is that wireless devices connect directly to the modem+wireless router.
Is such routing of traffic possible??
PS: I am not sure if i could convey my situation clearly...
I need to obtain daily dynamic IP address from my router for remote user. In order to get into the router page, I need to login to it with ID and password.
Can I tell the server to do this every time it started up to login to router and extract the ip address and send out via email?
The router can only access through web interface and below is what I copied from browser.
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.
I have an Ubuntu 9.10 server installation which have been working flawlessly for some months. The server runs bridged networking, because of some VMs that runs on it. But, a couple of weeks ago the network connectivity have started to disappear now and then (usually once a day or so). Running "sudo /etc/init.d/networking restart" always kicks it back to life.
After a bit of debugging I noticed that when OK the routing table looked like this: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 br0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 default 192.168.1.1 0.0.0.0 UG 100 0 0 br0
While when in the non-working state it looked like this: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 br0 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0 default 192.168.1.1 0.0.0.0 UG 100 0 0 br0
Deleting the two routes to eth0 restores the networking again. Why these "erronous" routes gets added, and what adds them? How to further debug this?
I have one external ip address and a few domains. Would it be possible to have each domain on a internal domain and the box that sits on that external ip route to the internal. This would be for a number of server (mail, apache, imap, pop3, https ) So for example:
Some visit domain1.com ->external ip -> 192.168.10.100 Someone else visit domain2.com ->external ip -> 192.168.10.101 and so one with a number of domains
I want to restrict the Visitors to my Webserver whom i want to give access But the persons whom i want to give access. have Dynamic IP. I want to use DynDNS and update IP address of person. Based on the Hostname Pointing to Dynamic address of person.
I'm going to an area with no wired internet connection so I would gather information on if it is possible and how to make working the following configuration for an home network:
a wireless access point connected to a laptop (an old one with a centrino Duo) with a usb stick for UMTS connection to the internet it is possible to use the laptop for routing to the internet the requests (http, ftp, mail etc..) of the PC connected to the home LAN which software have I to install on the laptop?
I have setup a dhcp server on eth0, & i have static Internet connection on eth1. now clients are getting ip automatically, they are able to trace root upto eth0 & eth1. but i am not able to access Internet from client machines. i am using open suse11 as a server. i am not able to do telnet & ftp also from client. i am able to access Internet from server. so please help me to configure my server so that i can access Internet from client machines also.
I have this strange problem which I am unable to web search on and not sure what to do next. My Linux knowledge is between basic to intermediate but I know how to troubleshoot general hardware problems.
My problem is that Ubuntu 9.04 Jaunty 64-bit hangs while SFTP is active and dynamic IP changes. For example, I SFTP into my home server and transfer file then suddenly my ISP decides to renew my IP and give me a new IP while my SFTP client is still uploading files to my home server. This causes my SFTP client to stop working. Upon checking, my router is still running with a new IP lease from my ISP. My Linux box still powers on but typing anything from the keyboard does not make it "wake up" and put things on the monitor. Nothing seems to make it respond and the only way is to get about it is to power off and on. During that time, you cannot SSH into the server as there is no respond. SFTP into the server is not possible too because connection fails.
The server has all new hardware, latest BIOS, etc. Memtest86 shows no errors after running for more then 5 hours. I am unable to find anything out of the norm in /var/log/kern.log or in dmesg. All hardware seems to be working.
When I think about it, I tend to think OpenSSH (probably that is the default package in Jaunty) is causing this system hang whenever there is an interrupted connection from the outside world. However, I fail to agree with this is because I am sure the daemon and Linux can tolerate this situation without resorting to system hang. FYI, I have installed vsftp as well but this should not be a problem.
I have 4 servers that I got at auction and they now have ubuntu running with gnome interface.I installed apache2 and tried to edit the conf file but i am not sure if it is a router issue a dns or the config.I am trying to figure out how to set the server to hold the domain from a dynamic ip address and also how to create some test page to see if i can acess from the internet.
I have purchased some books on the command lines and how ubuntu works, I am understanding it so far, but dont know how to have a directory for the dns request to point to for the sitewhat i want to do with the servers...voipeb server for about 4 websites - one is for a volunteer rescue organization, another for a test auction site and 2 portfolio sitesremote file access- if possiblealso on a side note, is it possible to have a message relay from one cell phone or transmit to the server and have it send sms message to cell phones? - this will be used for the rescue group as well.
Basically im trying to setup a dynamic vlan setup with my Cisco 2950 switch. I understand that freeradius has support for vmps and i'm wanting to use this. (as i'd also use the radius server for authentication for my squid proxy server)
But i have no idea where to start to get this configured. Right now i've got the freeradius package installed and i've done a bit of google'ing and i cant seem to find much about vmps and freeradius.
For backup and pre-functionality purposes, I need to simulate a VirtualHost in my Fedora (14) machine. I found some interesting links to carry out that process but with an IP fix.So, how can I simulate a VH through a localhost with a dynamic IP?
Just curious to see what everyone's opinion on using routing vs. bridging for openVPN. I'm installing openVPN on a linux box that I'm using as a router. What I was wondering was your opinions on which one of these two options to use.
I am playing with openvpn, and I got stuck.I am using ubuntu server for openvpn server, which has 2 physical NICs, one is directly on internet and other is LAN, where few pcs are connected on.
I want to use tab networking in my kvm with routing.Can any one guide me how i can do it. i have been reading different guides over the net but not understand any one clearly.I have read this[URL].. One problem is this all my server are remote and no gui is running.I am able to install kvm with ssh console with -nographic and -x "console=ttyS0" option now i want to change from bridging to tap networking with routing.And i have live ip on kvm guest/Virtual machine.
routing tables using "ip route 2" I have a server(server1 from now on) with eth0(internet connection) and eth1(lan connection). eth1 have 2 more alias devices = eth1:1 and eth1:2 On my server 1 the eth0=public ip, on eth1=192.168.10.1/24, eth1:1=192.168.20.1/24 and eth1:2=192.168.30.1/24 server1 is running squid and iptables to all 3 networks (eth1, eth1:1 and eth1:2) All of the clients have access to internet. Now what i want to do is add 3 more networks via a router(linuxBox = server2 from now on) connected to server1 in eth1. so the network will be like this:
Code:
server1 eth0=internet eth1=192.168.10.1/24 (connected to server2 and other clients)
I want to add a fourth NIC, eth3, which will be assigned its own Public IP/Internet address (thru DHCP; my ISP provides two). The purpose it to route all net1's internet-bound traffic through eth0, and all of net2's internet traffic to eth3. This allows me to use one router/firewall machine instead of two separate ones. I anticipate that without some specific routing instructions, the default route will be eth0 for all net1 and net2 internet traffic (eth3 will be ignored).
I thought of using just one NIC (eth0) but create an alias (eth0:0), but IPtables (and possible DHCP) can't differentiate between the two (besides, nics are inexpensive). Is there a way to do this through routing commands, or even use iptables prerouting/forward functions (or is using iptables problematic)?
I have two 500GB externals and a 200GB internal HDDs for my desktop. One of the 500s is solely for backups of my desktop, netbook, and laptop. The other 500 is pretty much my "everything" drive. Literally everything (music, movies/videos, pictures, documents, etc) get saved to this external so I can access it on all my machines. The internal 200GB on my desktop is pretty much only used for temporary downloads, the OS (obviously) and things like that.
Here's what I'd like to do: I used deja dup to create a back up of my /home and my "everything" 500 onto the "back ups only" 500 but once I let my paranoia simmer for a second I thought, "what if my back up HDD fails?!" So I want to have two redundant backups on separate drives. First I figured I'd just chuck it on the other "everything" 500 but then I thought that since I'm using barely any room on the internal 200, I could just store a backup there. So that's my plan. My problem is that deja dup only really allows one location to run the scheduled backups.
I saw this post: [url]
and think I could just do that for the redundant backup? Or is there a program I can get from the software center that allows me to schedule more than one backup on different locations? I looked into Back in Time but that's just a snapshot(?) and I didn't see a way to do what I liked...I think.
We run Ubuntu 10.04 Server for our solutions, but I'm having a bizarre problem with init.d boot scripts. I have a script for the Sangoma wanpipe drivers that I modified to add the LSB information so that "update rc.d wanrouter defaults" runs correctly. The symbolic links from rcN.d to init.However, when I reboot the system, all the rcN.d links have disappeared and wanrouter isn't automatically started!I've never seen this kind of behaviour from a Unix based system in 20+ years, so I'm baffled as to how to fix the problem.
I know how to make symbolic links on the same or between two different partitions. But is it possible to make symbolic links between two different servers, that are on the same lan?
i want to set up an email server both to receive and send emails. I also am on a dynamic ip scheme with my ISP. I do have a dynamic dns account with no-ip.org the Questions are:
-will somebody be able to send emails to me at the <user>@<dyndns_name>.no-ip.org email address?
-will I be able to send emails from the <user>@<dyndns_name>.no-ip.org email address?
I know i'll be able to login to accounts like gmail and yahoo and download emails from there.. but even that i don't know - even macroscopically how its done:
-is it the sendmail deamon that accepts the mail from <me>@gmail.com, <me>@yahoo.com, <me>@<dyndns_name>.no-ip.org?
-is it the sendmail deamon that does the sending of email (as well)?
-can it push emails that I want to send as <me>@gmail.com to the gmail smtp servers (and they in turn will push my email even further)?
-can it push emails from <me>@<dyndns_name>.no-ip.org to receipients? and finally,
-WILL receiving pop/imap servers allow incoming email from my server? or due to the dynamic ip they'll assume I'm a spam server?
So my server running FC4 died last night and I decided to go ahead with the long-awaited upgrade to FC10 while I was rebuilding my server. I use my server for a number of things including, but not limited to: router, firewall, web server, mail server... I have a typical configuration process that I have followed since before fedora, and it has worked well for me up through FC4, but my usual config process doesn't work on FC10.
First of all, I don't want SELinux running, I didn't see an option to not install it during the FC10 setup, so how to I properly disable or uninstall it afterwards? Second, I was unable to even configure the server to route traffic from my internal network to the web, here's the process I usually go through for this:
[Code]...
I don't have a static IP from my ISP, so I'm not quite sure how to add the default route. I think I need to do something like "route add default gw xxx.xxx.xxx.xxx eth1" where eth1 is my external NIC, correct?
What else do I need to do to route traffic? I noticed that I wasn't even able to ping my server from the internal network even though they are on the same subnet, my server's internal NIC has an address of 192.168.7.1 and my computer on the network has an address of 192.168.7.2. If I can get this going to I have internet access again at the very least, I can move forward with the web server, email, etc.