CentOS 5 Networking :: 5.2 Won't Route To Internet Via Ppp/usb?

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


ADVERTISEMENT

Networking :: Route Internet Traffic Over Second IP Address?

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

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 :: 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 View Related

Networking :: IPtables: Route Outgoing Traffic From Internal Host To Only Go A Internet Interface?

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

CentOS 5 Networking :: Route Add With Specific Interface?

Apr 19, 2009

I have an Asterisk-server with 2 interfaces, a WAN-interface (eth1) and a LAN-interface (eth0).

SETUP :

IAX-provider(internet) --> firewall --> Asterisk-server --> switch --> clients_on_LAN

So everything coming from the IAX-provider on port 4569 is forwarded to the Asterisk-server's WAN-interface (eth1).
This needs then be routed to an internal SIP-phone (an IVR-system will define which one) via eth0.

When a call is initiated from an internal SIP-phone (they register to the IP-address assigned to eth0) it needs to be routed via eth1 to the gateway (192.168.4.250). Asterisk will setup an IAX-channel on WAN-interface (eth1) to the IAX-provider (via gateway).

So... will this work :

route add -net ip_IAXprovider netmask 255.255.255.0 gw 192.168.4.250 dev eth1

View 9 Replies View Related

CentOS 5 Networking :: Can't Route Between Server And Other LAN Host

Feb 1, 2011

I'm setting up apache on centOS 5.5 and administering it from another host on my LAN(this web server has no Xorg). I can ping from the config host to the web server but not the other way. My network is quite a way from being set up so i'm just configuring the web server at the moment, the simplest way i can. It's just trying to get two LAN hosts both with 192.168.1.0/24 I.Ps to talk to each other using a router to connect them.

Here are the outputs of ifconfig and netstat -rn for the web server, the config host and the router:

The ifconfig -a and netstat -rn of the config host are:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1

[code]....

View 5 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

CentOS 5 Networking :: Incomplete Route Table: 5.4 On ESX4

Feb 11, 2010

New Centos 5.4 64bit install on vmware esx 4, NAT net setup. I can ping/trace other servers on IP, do nslookup's on name..Ping(traceroute on name gets me "distination unreachable", indicating an ICMP issue, so I checked the network setup, all looks like usual.Well, except that my routing table lacks the 127.0.0.0 and 0.0.0.0 def. gw entries, as in this working box example:

192.168.9.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.9.1 0.0.0.0 UG 0 0 0 eth0

FWIW, during install, I did the usual basic firewall steps,including SSH.Tried with/without iptables, no change; no wonder given the lacky routing table. Sure, I can add what's missing to the routing table, but I'd like to know why it's missing; i.e. what I missed on basic setup, as I'm going to repeat this with a nof new installations (replacing SLES).

View 5 Replies View Related

Networking :: Route-eth - Adding A Static Route?

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

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 :: Definition: "a Process That Replaces A Series Of Related, Specific Routes In A Route Table With A More Generic Route"

Oct 21, 2010

I got this definition:"a process that replaces a series of related, specific routes in a route table with a more generic route." honestly I found it not so clear.. I want to know if this definition is correct and also more details about this subject..

View 1 Replies View Related

Ubuntu Networking :: Error - "route: Netmask Does Not Match Route Address"

Jan 25, 2011

Having trouble getting my Netgear WNA1000 working thru wireless router. Have tried lots of suggestions from other threads to no avail. Someone suggested that th routing table isn't set correctly, so have been trying to use the follwing to make the proper entry in the routing table: sudo route add -net 192.168.0.1 netmask 255.255.255.0 dev wlan0

Result: error message stating with:
"route: netmask does not match route address"

followed by "Usage" instructions which tell me to do what I just did. Any ideas on how I can populate my routing table with correct entry for my wireless card? Not to complicate matters, but I temporarily turned off encryption on my router to eliminate that as a possibility until I get connected. So maybe it'still trying to connect via encrypted mode - do I need to turn off encryption on my (client) end?

View 2 Replies View Related

CentOS 5 Networking :: Eth0, Eth1, Eth1:0, Route = Get One Gateway For All The Eth?

Mar 4, 2011

I need to setup two ethernets in my Centos box. OK no problem both ethernet and 1 virtual works perfect. eth0, eth1 and eth1:0. I'm trying to set up diferent routes for eth0 and eth1/eth1:0 I need eth0 has a 192.168.1.1 gateway and eth1/eth1:0 192.168.1.100 gateway.I think I've tried almost every thing but always get one gateway for all the eth.These are my config..

/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:XX:XX:XX:XX:XX
inet addr:192.168.1.168 Bcast:192.168.1.255 Mask:255.255.255.0[code]......

View 7 Replies View Related

Ubuntu Servers :: Route Command - How To Get Internet To Clients

Apr 24, 2010

I do not understand this command well. Yes, I have looked at man route and that whilst that gives lots of information about the switches I cannot see it in context. I have a server with two nics. One to the Internet (eth1) and one to the lan (eth0). I use pppoe and when it is running I get a virtual adapter appear in ifconfic called ppp0 which shows the public DNS and ISP session IP. I entered the command:
route add -host (gateway IP) dev eth1
and get the Internet to appear on the server. However, I do not get the Internet to the clients. I have turned off the firewall to be sure that this is not the problem.

View 8 Replies View Related

Ubuntu :: Route Internet Through Interfaces Running BackTrack 5?

May 26, 2011

I have an interesting problem for you all today. Lately, I've been learning a lot about computer security and I have a weird request. I would like to route the internet connection from a laptop running BackTrack 5 (Linux distrobution for security), to another Backtrack computer through an SSH session. I believe this is called SSH tunneling. Essentially I have these interfaces set up.
Code:
eth0
wifi0
I would like to route the internet I get from wifi0 and send it through eth0. Essentially this would make my laptop a sort of hub. The reason is, I have a wireless router I use for all my penetration testing computers and I don't like them on my network normally. I want it so that way I can use my main computer, which has no wifi card, to connect to this network. Also, this would be great experience for other things. I'm not completely set on having it done through an SSH session also. I think there is a way to do it with iptables but, I'm not entirely sure how.

View 1 Replies View Related

CentOS 5 Networking :: Internet Sites Not Working In FF Browser / CentOS

Jul 20, 2011

I installed CentOS. NetworkManager successfully installed and launched. I can ping any IP from terminal but I can't open any site in browser except 127.0.0.1 I can't open IP of the modem 192.168.1.1 in browser also.

The results of some commands:

ifconfig
eth0Link encap: EthernetHWaddr 7D:60:00:00:00:00
inet addr: 192.168.1.5Bcast: 192.168.1.255Mask:255.255.255.0
inet6 addr: fe80::7f60:ff:fe00:0/64Scope:Link

[Code]....

View 6 Replies View Related

CentOS 5 Networking :: Internet Access Slow In CentOS 5.3?

Sep 9, 2009

I have an MSI K9A2 Platinum mobo, which has a 10/100/1000 Fast Ethernet Realtek 8111B built-in, a D-Link DIR-655 Router and a DSL modem. Compared to Windows Visya and other Linux distros ( Fedora 11, Suse 11.1, Mandriva 2009.1 ) access to the internet is much slower. It seems there is a noticeable delay when running CentOS 5.3. before internet access kicks in each time I am surfing the web or updating my system.

Is there any way I can speed things up, or determine why CentOS 5.3 seems much slower ?

View 5 Replies View Related

CentOS 5 Networking :: CentOS In Vmware Always Losing Internet?

Apr 21, 2010

I installed CentOS on Vmware server 2.0.2

I took a snapshot of my machine with internet working

If I reboot my machine I lose internet. This makes no sense to me.

I ifconfig eth0 down then ifconfig eth0 up and still no internet

Weird thing

I check ifconfig and my bcast ID is 192.168.2.255 when it is supposed to be 192.168.45.255

(When the internet is working if I check ifconfig the bcast ID is 192.168.2.255)

IF I change my bcast my internet stops working

If I reboot my machine my internet stops working

I checked /etc/sysconfig/network-scripts/ifcfg-eth0 and I see that in my snapshot (where the internet is actually working) the bcast is at 192.168.2.255

Without rebooting if I edit that script and I put it to .45.255 my internet stops working

If I reboot my machine at any time my internet stops working

I have also just realized that I cannot ping my gateway..

View 10 Replies View Related

Debian Configuration :: Complex Network Setup - RPI To Automatically Route Internet

Jan 26, 2016

I would like to update my network setup.

Today, I have an ADSL box which is my gateway to internet (192.168.0.1).

I have a Raspberry pi (RPI) which I use as a dhcp & dns server (192.168.0.2).

Recently my mobile phone operator installed a 4G antenna beside my home, and the bandwidth and latency are much better with my mobile phone than with my internet provider (ADSL).

I would like to install a wifi dongle on my RPI (I would get wlan0 & eth0 interfaces)

When RPI detect my shared phone connection (tethering) I would like RPI to automatically route internet:

- from authorized devices on my network to my mobile connexion (wlan0 -> mobile phone).
- from other devices to the standard ADSL internet (eth0 -> ADSL box).

I don't want any device to use the shared 4G connexion, best would be authorized devices to be selected by MAC address. How I should properly setup such a network ?

View 2 Replies View Related

CentOS 5 Networking :: Installed Centos 5.5 - No Internet / Get It?

Dec 7, 2010

I have installed CentOS 5.5 but i have no Internet what could i do so it is working ?

View 1 Replies View Related

CentOS 5 Server :: Error - Ssh: No Route To Host

May 25, 2010

I installed ntop on our server, after installing it, i ran ntop as a daemon. shortly after we lost the ability to ssh into the server.tried restarting ssh, but it didn't work, so had to restart the entire server.Where should we look to find why ssh suddenly stopped?

the error ssh gave when we try to connect was like: ssh: no route to host what log files should i look at and what should i look for to find the cause of the error?

View 8 Replies View Related

Networking :: CentOS 5.5 - No Access To Internet

Oct 17, 2010

I have CentOS5.5, it has full access to internet until I did something to it I couldn't figure out. This is not a cable issue since I could ping and ssh to other machines within my lan. Apache is also running fine, which is probably irrelevant. When I type traceroute cnn, it simply hangs, later saying [URL]:
Temporary failure in name resolution
Cannot handle "host" cmdline arg '[URL]' on position 1 (argc 1)
This is a desktop version of CentOS5.5, when i do Administration - Network, it says eth0 is active and Primary and Secondary DNS are set correctly to my comcast DNS server at 68.94.15x.1

View 2 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

CentOS 5 Server :: Configuring Piranha To Load Balance (Direct Route) 2 Ports

Feb 18, 2009

I seem to be having a strange problem configuring Piranha to load balance (Direct route) 2 ports across 2 w2k3 servers in a test environment. What is strange is that 1 of the ports are working fine but the other port doesn't work. I've read many how-to and after many frustrating hours I disabled the firewall, iptables and arptables services and one of the ports are load balanced across the 2 real servers. Here's the environment.

[Code]....

I can telnet from the client to the realserves on both ports and it's works. When I telnet to the VIP only one port gets through and the other gives me "could not open connection to host port 32777 : connect failed. The configuration in Piranha for one port is the same as the other. I can't help but think that some other configuration for port 32777 was missed.

View 1 Replies View Related

Networking :: Can't Get To Internet With My Centos System / Resolve This?

Nov 24, 2010

I recently configure a centos linux distro to use on the internet.my actual plan is to use it as a router to the internet for computers on my network. the system already has two lan cards which i have configured with their appropriate ip addresses. now with this initial configuration i believe i should be able to browse the internet, but my problem now is that i cant even though the lan card pointing to isp is correctly configured with the ips,gateway and dns from my isp. i cant even do a ping to the outside world.
I cant really pin point where the issue is coming from but i am guessing maybe my route are not well configured. i get ''unknown host google.com" message when i ping google.com and a ping to my gateway address gives '' Network is unreachable". i have been using this system before as my gateway, but only recently switched isp and i started having this issue when i reconfigure the system to my new isp settings. Now, on a windows system, all goes fine so i have been able to safely remove the fact that maybe it is from my isp from the picture. How do i resolve this?

View 1 Replies View Related

Networking :: SSH From The Internet To Centos Box At Home Behind The Router

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

CentOS 5 Networking :: Can't Ping Or Otherwise Access Internet

Mar 14, 2009

I just downloaded and installed the latest Cent OS 5. I disabled SE linux, turned off the firewall, and selected the Server package options when installing. I plan on using this as a router/firewall between my internal network and the internet, as well as web server, etc. The first thing I did was to configure the two NICs, internal one with 192.168.7.1 address and the other with an address from my ISP (I have a static address, but I also tried to let the DSL router assign an address via DHCP). Everything looked fine, I checked /etc/resolv.conf and my routes. I was able to ping the DSL router from the server, but I was not able to do a ping or lookup on anything outside my network. I tried host, dig, nslookup, etc, no luck. Obviously then, I was not able to browse the net with firefox.

View 4 Replies View Related

CentOS 5 Networking :: Internet Working But Can't Ping?

Sep 10, 2009

My server was working perfectly.

My other uses on on LAN can access Internet but Cant ping the server.

Though they were able to do that earlier.

No software installed. No change in any files.

View 1 Replies View Related

CentOS 5 Networking :: Connecting To Internet Via PPTP VPN

Oct 6, 2009

I am a newcommer to Centos. I should connect to internet via a pptp vpn connection. I created the connection in "network connections". In other distrows I could connect to created pptp vpn connection simply by clicking on network-manager-applet and selecting the connection, but there is no network-manager-applet in Centos. Is there any way to connect to the vpn connection I created or I should go to do it by manually editing config files?

View 3 Replies View Related







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