Networking :: Routing To Internet Through One Network And To Local Ips In Another Network?

Mar 31, 2009

I have two networks. One of them is wired, the other is wireless. The wired has an internet connection and a few other computers connected to it. The wireless network has a few hosts connected to it too, but it has no internet connection. What I've been trying, fruitlessly, to do, is make all connections that are bound to the internet, or my wired network, be routed that way, and all the connections to the hosts of the wireless network go that way.

Here's the setup..

Wired:

192.168.1.0/24 Gateway = 192.168.1.1

Route internet through here

Wireless

192.168.2.0/24 Gateway = 192.168.2.1

If my computer sends a packet to the internet, it should be routed through 192.168.1.1 If I send a packet to one of the local hosts of the wireless network, it should be routed through 192.168.2.1. Here's the routing table I've set up(This is one of many configurations I've tried)

Code:

$ ip route show
192.168.2.1 dev wlan0 scope link
192.168.2.0/24 via 192.168.2.1 dev wlan0 src 192.168.2.4

[code]....

With this, and everything else, I get destination host unreachable when pinging. The strange thing is that, if I unplug my eth cable, reboot and connect to the wireless network, everything is fine and I can access the router and the others. I'm trying to improve my networking skills, as I've had this of setting up a small linux box as a router for quite some time, for the fun of it, but I need to get routing under control before I go ruin my network.

View 6 Replies


ADVERTISEMENT

Networking :: VPN And Routing - PC No Longer Visible On Local Network

Aug 26, 2010

I am using Network Manager to connect to a VPN server so that I can access some of the computers on the local network there. When I'm connected, I have two problems: All my internet traffic goes through the VPN. My computer is no longer visible on my local network. I waste a lot of time connecting and disconnecting the VPN. Is there any way I can set up a VPN so that I am still on my local network and only requests to 172.x.x.x go through the VPN. I suspect it can be done with iptables, but all the info about iptables goes WAY over my head.

View 8 Replies View Related

Networking :: Can Connect To Internet But Not Local Network?

May 3, 2010

I Have Ubuntu 9.10 Server installed and for some reason after updating our server with the ubuntu update manager, we can no longer connect to the network via remote desktop, let alone not even able to ping. We are actually able to connect to the internet itself just fine so I dont understand why this isn't working

View 3 Replies View Related

Networking :: Access Local Ip From Outside Network(internet)?

Mar 22, 2011

I have created more A record in dns. one record is link to my local ip, i have already static ip, how can i access my local website from global.

View 11 Replies View Related

CentOS 5 Networking :: DNS Configuration - Local Network And Internet Names

Jan 28, 2009

We are in the process for Integration Network with our Government Network.
Let say that our network are 192.168.0.0/24
And the Government network are 10.0.0.0/8
I want to know if the local network can resolve the internet names in Government Network. I am using Bind for DNS.

View 1 Replies View Related

Ubuntu Networking :: Broadcom WLAN - Connection Refuses To Load Anything Off The Internet / Local Network

Jun 6, 2010

I dual boot windows xp and ubuntu 10.04 LTS and the wireless card works perfectly fine in xp so I know its not a hardware/network issue. In ubuntu, it detects wireless networks, will connect to network and work for about 20 seconds.

[Code]....

and it continues on after this alternating between a normal 20ms and high ping over 200ms. The connection refuses to load anything off the internet/local network.

View 5 Replies View Related

Networking :: (socket Progamming In C) / Decoding The Domain Name When An User In The Local Network Is Logging Onto Internet?

Jun 22, 2009

I am currently working on a project related to packet sniffing which has been implemented using the concept of raw sockets. I am using C language.I am able to decode the following details from the packets received from a local network,like:

source and Destination Mac Address
source and Destination IP Address
source and Destination port no

But I am having trouble in decoding the domain name when an user in the local network is logging onto internet.For eg. if a user in the local network is trying to log on to web using his browser say if he has logged on to url then from the packet I need to get the following details

source Mac Address from which user had logged on
source IP Address from which user had logged on
domain name

View 1 Replies View Related

OpenSUSE Network :: Routing To The Internet By A Laptop With UMTS Connection?

Jun 7, 2011

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?

View 9 Replies View Related

Networking :: Creating Simultaneous Network Connections To A VPN And Local Area Network?

May 31, 2010

I'm working with a Ubuntu 10.04 LTS system with two network interfaces (both Ethernet). I wish to setup this system such that it is simultaneously connected to my local and an OpenVPN network and able direct traffic between the connections depending on what program is sending the traffic. The problem: Under my current OpenVPN configuration all network traffic is directed to the VPN.

My OpenVPN config file (some details omitted)

--remote [gateway ip] # vpn12 load:
--remote [gateway ip] # vpn11 load:
--remote [gateway ip] # vpn15 load:
--remote [gateway ip] # vpn16 load:

[code]....

In practice, I would like OpenVPN to operate out of one of my two network interfaces and leave the other interface connected to the local network. Then by default all network traffic should be directed to my local network unless I specify (on a per program bases) that certain traffic should go though the VPN. These two network connections can (should) stay completely independent of each other and do not need to talk to each other.

View 2 Replies View Related

Networking :: Routing 3 Site With Different Network?

Nov 28, 2010

At every site i have two provider vsat and wireless connection.I have a linux machine and wanna setup act router for every site.

SITE 1 :
vsat : gw 10.23.128.1
wireless : gw 192.168.100.1

[code].....

View 5 Replies View Related

Networking :: IP Routing WirelessLAN And Ethernet In Same Network

Feb 1, 2010

My hardware has two interfaces: a) ethernet - eth0 b) WirelessLAN - eth1.After power on, eth1 gets associated to WirelessLAN access point.

The ethernet interface of Hadrware and test PC is directly connected to Wireless LAN access point through ethernet cable. Hardware is associated to Wireless LAN access point through eth1 interface.Now, when ethernet cable is connected to hardware, I can ping 192.168.254.254 from test PC.When I removed ethernet cable from hardware, I cannot ping 192.168.254.253 from test PC.I think access point should forward the incoming packet from test pc to hardware's eth1 interface wirelessely. Where am I wrong? Is it related to Kernel's routing table? If yes, how to detect removal of ethernet cable from hardware and change routing table dynmically?

View 7 Replies View Related

Networking :: Iptables Routing Packets On Same Sub-network

Feb 17, 2010

I am running into trouble while trying to set-up a iptables routing policy. I have two machines on the same sub-network (xxx.xxx.153.0). One of the machines is used as a default gw for the other (xxx.xxx.153.250 is a gateway for xxx.xxx.153.142 and xxx.xxx.153.254 is a gw for xxx.xxx.153.250). There is no explanation for why the xxx.xxx.153.250 is in the middle -- xxx.xxx.153.142 can go straight to xxx.xxx.153.254, but is is like that for now.I am trying to find an iptable rule to be executed on the xxx.xxx.153.250 machine to route the packets.

View 3 Replies View Related

Networking :: Routing Ports To Secondary Network Card?

Jan 21, 2010

I have a program that connects to the internet that I would like to route through one of my secondary network interfaces. I need one specific port routed to eth1 instead of eth0. I believe that I should be using iptables for that, but I don't really know how to do it.

View 14 Replies View Related

Ubuntu Networking :: Can See All Devices On Local Network And Their Local Ip Addresses

May 16, 2010

I'd like a way to see all of the devices on my local network and what their local IP address is. I recall that I used wireshark to troubleshoot a similar problem a while back, but it doesn't seem to have a way to see all of the devices- only the traffic. (I'd like to do this without having to physically interface with my router if possible, and I am in an encrypted network if that matters)

View 6 Replies View Related

Ubuntu Networking :: Unable To See Local Web Sites From Local Network

Jun 28, 2011

I have installed a web server on my local network. Everything is well configured and web pages are shown correctly from Internet (outside the local network) using the domain or the public IP.The issue is if I try to see that web pages (using the domain or the public IP) from inside the local network. In that case the router config page (192.168.1.1) is shown instead of the web pages.From inside the local network I'm only able to see the web pages using the internal IP address (192.168.1.XX).

View 2 Replies View Related

Ubuntu Servers :: 10.4 Needs Connected To Local Network And Internet?

Jul 2, 2010

I jsut installed 10.4 Server. I want to hook it to the network. I want to hook up through wlan0. my router is WPA and is my DHCP.

View 4 Replies View Related

Security :: IPtables Limit SSH From Local Network To Internet

Feb 24, 2010

I have a linux firewall. I want to limit a ssh connection number from local network to internet .

Example :
Internal pc (192.168.0.10) start a ssh scan to the external (internet) host.

I want that iptables limit that host (192.168.0.10) and block ssh connection from this host at 3 attempt.

View 2 Replies View Related

Ubuntu Networking :: Vpnc Traffic Routing - IPSec Target Network?

Nov 16, 2010

I just got vpnc setup to work with my VPN at work and now I am trying to figure out how to limit the traffic that is routed through the VPN while I'm connected to it. I only want traffic going to the local domain to be routed through the VPN.This is what my vpnc config file looks like:

Code:
IPSec gateway publicdomain.example.com
IPSec ID XXXX

[code]....

View 2 Replies View Related

Ubuntu Servers :: Accessing Blog On Local Network And Internet?

Jun 29, 2010

i have php5 and mysql on ubuntu server which is hosting a WordPress blog. i activated it remotely over the internet and it works fine still over the internet. now im home and using my local network again and now when i try to go into it with its local IP, it just shows some text (blog title, posts and so on) with NO pictures.

View 2 Replies View Related

Ubuntu Networking :: Use Local IP Only On Local Network?

May 25, 2010

I've got an Ubuntu server hosting our websites and other various things here in our own home. We recently switched to a router that doesn't support loopback (abomination), so I've set up hosts files on our computers so we can access our own sites when on our home LAN.

However, we often take our laptops as we travel about, and I'm guessing due to the hosts files when we try to access our sites, it'll look on whatever local network we're connected to for our server, which won't work, obviously.

Is there a way to set up something like a hosts file that'll only try to look up the local IP of the server when we're on a specific network (our home one), or have one that tries to look for the local IP first, then proceeds to try and resolve the domain name and use the external IP if the local IP doesn't work?

View 6 Replies View Related

Ubuntu Networking :: Erroneous Routing When Both Mobile Broadband And Wireless Network Connected

Mar 30, 2011

I have internet access using mobile broadband and i also have a wireless network for home usage without internet access.

When my wireless network is connected every application in ubuntu (Meerkat) tries to use it for inernet access (as neededobviously). As soon as i disconnect from the wireless network (and assuming the mobile broadband is on) everything has access to the internet again using the mobile brodband.

How do i tell ubuntu that i don't want it to use my wireless network for internet access?

View 6 Replies View Related

OpenSUSE Wireless :: Internet Connection Stops When Plug In Local Network?

Jul 25, 2011

I have a wireless cable modem/router and a PCI-E 1x wireless card in my desktop PC. It works perfectly until I connect my Ethernet cable to my local router and printer, no more internet connection. I am guessing there is a setting somewhere that tells the networking software that the hard wire connection is the primary internet gateway. How do I tell it to use the wireless as the primary gateway?

View 4 Replies View Related

OpenSUSE Network :: Can't Ssh Remote Hosts / Can't Ping Any Machines Outside Local Area Network?

Aug 29, 2010

I just installed open Suse 11.3, and I cannot SSH my school. Upon further investigation I could not even ping any machines outside my local area network. Ironically I could nmap machines outside my local area network.

View 4 Replies View Related

OpenSUSE Network :: Permanently Enable X Connections From All Machines On Local Network?

Jan 13, 2010

Does anyone know how to permanently enable X connections from all machines on my local network. I keep having to enter 'xhost +' to allow X connections.

View 2 Replies View Related

OpenSUSE Network :: Cannot Resolve Host Names On Local Network?

Mar 9, 2010

I have a mac and an openSUSE box connected wirelessly to a router. From my mac, if I ping the Linux machine by both ip address and hostname "elmo.local", I get a response. If I ping my mac from the Linux machine using its ip address, I get a response. However, if I ping the mac from the Linux box using its name "kermit.local" - nothing!

This means in order to share files between them via the network, I have to use the ip address rather than name, but I'd rather not. When I had Ubuntu installed instead of openSUSE this all worked fine out of the box, so I'm assuming it's a problem with the setup of openSUSE rather than the router or the mac.

View 4 Replies View Related

Ubuntu :: Network Manager Is Gone - Connect To Local Network Using Terminal

Jan 29, 2011

Yhe only ptoblem was that he had forgotten the password to his network. This was really anoying and has happened before sp yesterday i decided to install some kind of WEP cracking tool so that it would not happen anymore.. After using sometime without getting anything to work i found this tutorial: [URL]

and started following it. i only got to the point where he has updated his computer using update manager and is about to patch his wificard. Then i noticed that the network manager for gnome was gone and the virtualbox logo in my top panel was changed to a red circle with a line running through it. I have tried to download network manager from another computer and installing it on my laptop but it needs internet to install. Then i tried to connect to my local network using terminal that did't work either i also tried connecting using a cable but had no luck connecting. The command iwconfig gives me:

[Code]....

View 4 Replies View Related

Networking :: Routing Red Hat VM Through Local Physical Box?

May 31, 2011

I've setup an XP VM using Red Hat's KVM. The physical Red Hat box has two NICs, a fiber one in use and active and a CAT-5 one that is disabled and with no wire connected. The physical box has br0 active and bridging on the subnet of 192.168.10.0/24. ip route show also displays for virbr0 192.168.0.0/16 My physical box (192.168.10.228)can ping the virbr0 IP of 192.168.122.1, but not the XP VM of 192.168.122.228

I have played around with Window's route command to try and setup some method for the Windows VM to ping the 192.168.10.0 network, but have not had any luck. I've also messed around with the Red Hat netmask and such to work it from the Linux side. But then, as would be expected, I can't talk to other Linux boxes on the physical network.

Does anyone have any ideas how to get the Windows box to communicate with the Red Hat box and the other Linux systems beyond while keeping the two distinct networks of 192.168.10.0 and 192.168.122.0 leaving them both as Class C (255.255.255.0)? I mentioned the unused CAT-5 NIC thinking perhaps it could operate as an internal router even with no cable attached. That was just a random thought and I have not even explored that.

View 2 Replies View Related

Networking :: What TLD To Use For Local Network

Mar 29, 2010

As it looks like the number of DNS Top Level Domains are just going to proliferate in the near future, use locally on an RFC 1918 private network in order to prevent a future name collision issue?

.local is the most obvious one but as that was stolen by Apple for mDNS/rendezvous use it's probably wise to avoid it now.

View 4 Replies View Related

Networking :: Alternative Routing For Local Process?

Nov 26, 2010

I have a multihomed server, connected on two different ISPs. All default trafic goes to ISP1 via wan1. There is special local processes in my system, what must go through ISP2 via wan2. This processes are make connections to TCP:80.

What did I do:

[root@localhost ~]# ifconfig wan1 10.44.8.252 netmask 255.255.255.0 broadcast 110.44.8.255 up
[root@localhost ~]# ip r r default via 10.44.8.1

[code]....

I see that frames goes out with SRC of wan1... I tried this:

[root@localhost ~]# iptables -t nat -I POSTROUTING -o wan2 -p tcp --dport 80 -j SNAT --to-source 192.168.86.2

and saw:

[root@localhost ~]# telnet 194.87.0.50 80
[root@localhost ~]# tcpdump -i wan2 -nnt port 80
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

[code]....

The connection did not established... Conntrack does not see it!

View 2 Replies View Related

Ubuntu Networking :: Ssh Outside At Local Network

Jan 21, 2011

If i want to use SSH to log on to my home computer, which is connected to the router, how do I go about connecting to it?If I get my external IP of the computer at home, it will show me the external IP of the router correct? Then I need to forward the router's external IP to my computer at home. But then, how do I connect using ssh? or do I need to consider my local IP of the computer at the router's network?

View 7 Replies View Related







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