Networking :: Connecting To External Network And Internet Via Two Gateways?

Nov 17, 2009

I`ve got a network (192.168.1.0/24)with common internet gateway (gw 192.168.1.253).Everything works good and i have access to i-net through 192.168.1.253 from all loacl machines. Then I tried to make and internal server as a firewall for local subnetwork. It is CentOS 5.3 based.

Code:
[root@router etc]# uname -a
Linux router 2.6.9-89.0.16.EL #1 Tue Nov 3 17:15:02 EST 2009 i686 i686 i386 GNU/Linux

[code]...

View 4 Replies


ADVERTISEMENT

Networking :: Multiple Gateways On Same Network?

Dec 1, 2010

I have 3 servers interconnected with IPs 192.168.150.1-3. First two has internet connection and third first server uses them as gateways. After googling and reading howtos I managed to get it working: The firewall for ssh on first server is defined

Code:
...
iptables -A EXTIN -p tcp --dport 23 -j ACCEPT
iptables -A FORWARD -p tcp -d 192.168.150.3 --dport 22 -j ACCEPT
iptables -t nat -A POSTROUTING -d 192.168.150.3 -p tcp --dport 22 -j SNAT --to 192.168.150.1
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 23 -j DNAT --to 192.168.150.3:22
...

On Seconds server:
Code:
...
iptables -A EXTIN -p tcp --dport 23 -j ACCEPT
iptables -A FORWARD -p tcp -d 192.168.150.3 --dport 22 -j ACCEPT
iptables -t nat -A POSTROUTING -d 192.168.150.3 -p tcp --dport 22 -j SNAT --to 192.168.150.2
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 23 -j DNAT --to 192.168.150.3:22
...

And on third route is defined like this:
Code:
ip route add default scope global nexthop via 192.168.150.1 dev eth0 nexthop via 192.168.150.2 dev eth0

It works, but the problem is that connections on third server are shown that their connected from 192.168.150.1 or 192.168.150.2. Are there is any way to keep original connection source address, when connecting to 192.168.150.3?

View 2 Replies View Related

CentOS 5 Networking :: Script For Switch The Network Gateways

May 11, 2010

I installed the CentOS v5.4 on a virtual machine vmware server v1.0. I put the the vmware ethernet on bridged mode and now I have an ip address, subnet mask and dns from my dhcp server from the the office where I am. I edit the file /etc/sysconfig/network and I put there the gateway ip. Now is okay but not at my home where I have another gateway ip. a script who switch between my gateways ?

View 4 Replies View Related

Ubuntu Networking :: Connecting To The Internet On A Windows Network?

Jul 20, 2010

I have an iBook G4 running Debian Lenny. I was wondering, is there anyway to connect to the internet while on a Windows network at school over Ethernet using smbclient? I have both GNOME 2.22 and LXDE .5 on the machine.

View 3 Replies View Related

Ubuntu Networking :: Connecting To Internet Through Network Bridge

Nov 13, 2010

I setup a network bridge on pc A, with windows 7 installed on it, using windows default bridging tool. I connected computer B to computer A and Im trying to connect to the internet through the network bridge on computer A. Computer B (client) has two OS's installed, win XP and linux(tried with different distributions, didnt work). On windows XP everything is working, when i try to ping the router (after computer A) it also responds. On linux system nothing is working, and im not quite sure why.

I set up linux to receive IP adress from DHCP, which is router in this case (behind computer A), same way windows XP was configured. I decided to ask here, because I couldn't find anything on the net. My guess is windows-made bridge supports only windows-OS's but that would be kind of strange (its just a software bridge).

View 2 Replies View Related

Ubuntu Networking :: 10.04 Server Not Connecting To Internet (Wired Network)

Jun 10, 2010

I just installed Ubuntu server edition on to an old Dell desktop. The only problem is that I can't get the Internet to work. I have tried the following and I guess it doesn't work:

Code:
sudo ifconfig eth0 192.168.1.52/24 up
sudo route add default gw 192.168.1.1

Each of those commands don't give me any error and it would seem like everything works fine, until I try to ping google or any website and I get an error that tells me that no host was found. I am using version 10.04 of Ubuntu server.

View 7 Replies View Related

Ubuntu Networking :: Internet Died After Connecting To Wireless Network?

Jul 9, 2011

I have a wireless router, but my desktop computer is connecting to it, or maybe to the modem, by an Ethernet cable. It has a built-in wireless card, so just as an experiment, I tried to connect to my network wirelessly. It didn't work. And not only did I not get any internet connection, I can't get any internet through the wired connection either. The internet works fine with Windows Vista (I'm dual-booting), as well as when I boot up Backtrack off of a Live DVD. I can still access my router's config page by going to 192.168.2.1 on a web browser, but I can't access anything else.

View 1 Replies View Related

Ubuntu Networking :: 9.10 Not Connecting To Internet At Home But Connecting From Work

Feb 9, 2010

I just installed Ubuntu 9.10 and its great. However when I connect to the internet at home it shows that the connection has been established but I still cant connect to the internet. My flatmates are all able to connect. However, I am able to connect from work both wirelessly and through an ethernet cable.

View 2 Replies View Related

OpenSUSE Network :: Connecting To The Internet After Installing & Updating?

Jun 24, 2011

After a recent installation and update I am having problems connecting to the internet even after following the steps in [URL]... Configure a network card in Suse/openSUSE...." It doesn't always connect when I boot and there is no connection icon on the panel nor the KDE desktop. Can someone assist me with this problem?

View 9 Replies View Related

Ubuntu Networking :: Connecting To External USB Hard Disc?

Aug 30, 2010

I have a few computers all connected to the same router both wireless and wired. All at the moment are running Ubuntu. There is no problem sharing any of these computer's local drives through the network. However I have one desktop with an external USB Hard disc plugged into it. I would like to share this external hard disc on the network. I set it up to share but when I try and access it from one of the other computers on the network, although it shows up, I get the message "Unable to mount location. Failed to mount windows share".

View 1 Replies View Related

Networking :: Connecting Mybook 2 (external HDD) With Laptop Running Ubuntu 10.04?

Jun 3, 2010

im having problems connecting mybook 2 with my laptop. Everything was ok and running perfectly and there was no changes in my laptop or upgrades and it stop working. I was not able to see the computers in my network then I fixed it I can see them but when I try to browse the files the OS tells me that is unable to mount location and failed to retrieve share list from server. The funny part is that if I go to Places>Connect to server and type my mybook ip address, my laptop can connect and I can browse the files. I really dont know what is the problem. My firewall is down so I dont think that is the problem. If anyone can help me with these because I know im able to connect to my mybook but i am unable to connect to any other laptop or my WD-Tv live.

View 1 Replies View Related

Networking :: Sending Out Different Certs (Multiple Gateways)

Apr 6, 2010

I'm hosting a Sendmail Cyrus-Imap server on fedora 12. I recently installed a second NIC on a second internet gateway and successfully configured source based routing. Clients are able to connect over the mail.domain.com received from the gateway 192.168.0.1 to the interface 192.168.0.254. ETH0. Clients are also able to connect from pop3.domain.com and smtp.domain.com from the second gateway 192.168.1.1 to the interface 192.168.1.254. ETH1

I have cyrus-imap certs configured for the mail.domain.com and a Sendmial cert configured for mail.domain.com. My question is how would I tell sendmail and cyrus that the mail.domain.com goes out the ETH0 but deliver the second and third cert (eg cyrus sends pop3.domain.com and sendmail sends smtp.domain.com) to clients connected on ETH1?

View 1 Replies View Related

CentOS 5 Networking :: Port Forwards From 2 Different Gateways?

Mar 24, 2010

I have a CentOS5 box I use to run ASSP for Anti-spam. It has a single NIC. I configure network settings using Webmin. I have two Internet connections managed by different routers.

Router 1 - 10.0.0.254 255.255.255.0
Router 2 - 10.0.0.250 255.255.255.0
CentOS - 10.0.0.30 255.255.255.0

Both routers port forward traffic on port 25 (SMTP) to the CentOS box. The SMTP connections only work for the router that is the default gateway on the CentOS box! If Router 1 is configured as the default gateway in CentOS then I can Telnet to that routers WAN IP on port 25 and successfully send mail! On Router 2 I get no connection unless I change the default gateway in CentOS to be the IP of Router 2 thern Router 1 SMTP connections will not work! I imagine that CentOS is sending out it's responses to the default gateway instead of the Router that initiated the port forward?

View 2 Replies View Related

Networking :: Connecting LAN PC Through Internet?

Mar 31, 2011

I would like to connect a PC (it has no white IP) through Internet. It's possible to create tunnel with SSH, but I need more easy way. May be there is some service exists (like TeamViewer), so people can just run simple command on that PC?

View 3 Replies View Related

Networking :: Connecting To Internet On Ret Hat 5

Aug 16, 2010

Am not able to browse on Linux 5.please provide me step by step procedure to config internet on my Linux 5

View 3 Replies View Related

Fedora Networking :: Connecting Home Network To Work Network

Sep 20, 2010

Currently my office use a Cisco Firewall which will only allow the ANYCONNECT utility to do the vpn connection. I found a Linux utility (OpenConnect) which will do the same thing, but allow me more flexibility with my networking needs.What I ultimately would like to have is to have a switch that I can connect any network device into it and be connected to the office. IE (my IP Work Phone and Computer) Currently I have is a computer with fedora 13 and two network cards eth0 (home network - connected to a router) and eth1 which I would like to connect a switch to. OpenConnect communicates fine and I can see the work network from the Fedora machine. It creates a vpn0 tun/tap device and I don't know how to pass communication to/from the eth1 device.

Do I try to iptables the ports for the phone and services I need on the computer? Or do I build bridge; and If I do what am I bridging. I have tried making a bridge from eth1 to vpn0 which reply's with unsupported device or something like that.Unfortunately my network skills are bit limited and my office says "it can't be done". Their solution is for me to buy a ASA5505 (or something device) and have a static IP. I would have to make it work as my router and even then it will only DHCP 10 ip addresses; which will cause a shortage of IP addresses in the house.

View 1 Replies View Related

Fedora Networking :: Wired Networking Not Connecting In 12 With Windows Internet Connection Sharing?

Jan 16, 2011

I just want to use Internet Connection Sharing (ICS) to connect to the internet. I have done a massive amount of troubleshooting, but some of it seems to contradict itself, and the only two things that I know for sure are that it used to work, and that my Ethernet cable is not the problem. When I use Terminal utilities like ifup and dhclient it seems that it can not determine IP information, but when I try to put it in manually, the "Apply" button grays out right after I finish typing it in. When I try to connect normally, in KDE or GNOME, the icon acts like it's connecting, then instead of having the connected icon, I receive a notification that "the network has been disconnected", and it goes back to the disconnected icon.

Oh, and by the way, I know that I could probably find a workaround, but I have limited resources, and this used to work. The Linux is a Dell desktop with Fedora 12 and the Windows is a Windows 7 HP laptop.EDIT: I hope that I didn't mess something up, but I accidentally used system-network-config to try putting in the IP address there, and ended up changing it back to the original settings, but the computer is now calling it Auto Ethernet in the taskbar icon, although sudo iwconfig in the terminal still calls it eth0.

View 7 Replies View Related

Fedora Networking :: 12 Connecting To Internet?

Apr 15, 2010

I'm using ADSL modem (not router) and I can't connect to internet. The network manager and the pppoe-setup command doesn't work. So I'm asking some of the experienced users of fedora 12 to help me setup my connection.

Details: ADSL modem with pppoe connection (working fine on win xp)

View 4 Replies View Related

Ubuntu Networking :: Connecting To The Internet On 9.10?

Jan 19, 2010

I'm running Ubuntu 9.10 Live CD and I can't connect to the internet. I click on System --> Preferences --> Network connections and under the tab DSL I click Add. After i fill the information I click to connect to the new connection and after a while it shows me a baloon which says "Wired network: Disconnected - you are now offline".

View 1 Replies View Related

Networking :: Connecting To Internet Using Wvdial?

Jul 29, 2010

I am trying to connect to Internet using Wavecome modem with Airtel GPRS connection. I am able to successfully connect and browse the Internet using wvdial. But if I use pppd, I am getting the error message as "LCP Terminated by peer".

The exact error I am getting is pasted below.
[root@pscu1320 ppp]# pppd call gprs-wavecom
GPRS modem init: press <ctrl>-C to disconnect
Wakeup Modem

[Code].....

View 1 Replies View Related

Networking :: Strangest While Connecting To The Internet Ever Seen?

Apr 5, 2011

I had an ubuntu 10.4 box, I used it mainly for programming, virtualization & other stuff. I've installed this box about 1 month ago, working on it everyday. About 2 days ago problem appeared when I just opened up firefox for cheking my E-Mail. I typed : [URL]. & nothing appeared & I just seen the famous firefox page when a networking problem is around . I just wondered and checked the connectivity & the wire itself, but find no problem around them, while playing with firefox I just had a turned on virtualBox machine (Windows XP service Pack 3), I just checked the internet within vm & working fine, I checked my e-mail from vm (windows xp), I thought restarting the system might help to solve the problem but damn, problem didn't solved & still arounds Well, I searched through websites dedicated to linux networking & forums that might help, I did anything that faced to my brain , follow another people recipes but problem did't solved for about 3 days ! Playing with primary & alternative dns didn't help, I did my best about solving the problem, disabling ipv6 from both linux networking settings & firefox itself didn't help also . After that, I thought reinstalling the linux might help to solving the problem, but install a new version of ubuntu, 10.10, I tried it, install it but the holyshit problem still arounds ! I think this might be a bug on ubuntu distro, I tried Mint 10 & the same problem, reinstalling x64 version of fedora core & the same problem .It's interesting that the same settings for TD-8101G TP-Link working fine for my Windows XP, Windows 7 x64 & the problem is arounds just for my linux distros .As I said I checked the internet for the problem & found nothing workable for me. I thought it's better to describe the problem & maybe another people faced with that problem .

View 9 Replies View Related

CentOS 5 Networking :: Not Connecting To Internet

Feb 27, 2010

I have a CentOS server that I can connect to over my local network. The computer I'm currently on is on that same network and can access the internet. My server can not connect to the internet. The network card is obviously connecting to the network since I can access the server locally with SSH or HTTP. While in the terminal for the server, I type wget google.com and the server can not find the specified host, so this leaves me to believe it can not access the internet.

View 2 Replies View Related

Fedora Networking :: Connecting To The Internet On Any Computer In The LAN?

Mar 4, 2009

I recently set up a network of computers via Ethernet, all of which use Fedora 10. I would like to be able to get any computer on the network to hook up to the internet.(I think the solution is now figured out - see below, on page 2, "problem solved")

View 14 Replies View Related

Fedora Networking :: Connecting To Internet Through GPRS?

Mar 27, 2009

How can I connect laptop to internet using GPRS enabled Phone?

Phone is Nokia 6600 slide. And laptop(Dell) has F10 installed.

View 7 Replies View Related

Ubuntu Networking :: Connecting To Internet In Campus?

Jan 22, 2010

I have a problem which is connecting automatically to my spwireless. On my windows, my schools provide me the disc which contains several .cer files and a automated batch files to copy the .cer files to the root folders. I can choose to use the other network but in using that, i have to manually connect compared to using the spwireless. Anyway, my problem is that, how do i add the .cer files and to where so when i connect to the network it will look there for the cert. Because when i manually connect, only one cer can be chosen.

View 2 Replies View Related

Ubuntu Networking :: Connecting To Wired Internet In 9.10

Feb 21, 2010

I have a problem connecting to the internet using Ubuntu 9.10 . But the same works fine in Ubuntu 9.04.. First I thought it was my hardware problem and asked my friend(also was using ubuntu 9.04) to try ubuntu 9.10 but he too failed to connect....

I have an wired ADSL Modem given by my Service Provider. When I switch on my modem the router gets connected but it cannot connect me to internet...

View 9 Replies View Related

Ubuntu Networking :: Connecting To Internet Via LAN / What Is GATEWAY?

Jun 19, 2010

Whenever i used to setup a new connection in Windows it would just ask me User name and password here i need to fill up something called as "Gateway" !? The connection won't be accepted unless i fill up something in there... So, what do i put in there? I'm on a LAN of 3 computers connected with a router.The router takes one wire as input from the modem(cable).

View 9 Replies View Related

Ubuntu Networking :: Connecting To Internet Through Another Computer?

Dec 23, 2010

I'm trying to get internet to my old server through a laptop. The laptop is running ubuntu 10.10 and the tower is running ubuntu server 10.10 X86.

View 1 Replies View Related

Ubuntu Networking :: Wireless Not Connecting To The Internet

Feb 16, 2011

i have a Levano S10e intel atom preccessor and the net-book is not connecting wirelessly to the network. i have tried at two locations and even plugged in a exterlal wifi adapter. it wouldnt connect then either, the only way to get connected is to use a cat5 cable. here is the ifconfig output with no cat5 inserted and it not connecting to the internet.:

[Code]....

View 8 Replies View Related

Ubuntu Networking :: Connecting To WPA Internet Using Terminal?

Apr 27, 2011

I need to reinstall my GUI but all I can access currently is a terminal, I have the encryption key and SSID but have found all the how to's I've read really confusing since following certain steps on them give me error messages, I'm connecting wirelessly to wlan0.

View 9 Replies View Related







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