Networking :: Linux OS As Router / Surf The Web Both On Computer And On Laptop?
Feb 20, 2011
I have two network cards in my computer (Debian). One (eth0) is connected to the router which is connected to the internet, the other one (eth1) is connected to my laptop (Gentoo). Now I want to surf the web both on my computer and on my laptop. I obeyed some tutorials "Linux as router":
1. On my Debian system IP-Forwarding is on:
Code:
takada:/home/sam# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
2. Laptop has IP 192.168.0.2 and this is the output of 'cat /etc/network/interfaces' on my computer:
Code:
takada:/etc/network# cat interfaces
# 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
But a ping from my laptop to 192.168.1.1 (router to internet) still gives:
Code:
connect: Network is unreachable
View 4 Replies
ADVERTISEMENT
Nov 27, 2009
I want to configure linux CentOS 5 as a router using iptable, .Im new in linux so I need the steps to do that
View 5 Replies
View Related
May 10, 2011
You'll need to reply like I'm an absolute idiot. I cannot get the stupid thing to work. WINE won't install, and I'm really confused on how to make it work. If anyone could please give me a step-by-step, that would be great.
View 1 Replies
View Related
Mar 26, 2010
How do I make a router by Linux?In other words you want your Linux to work as a router.
View 10 Replies
View Related
Jun 18, 2011
I want to set up a Linux box as a wireless router to replace our existing Netgear WNR1000 router, as I believe the Netgear does not support the coming IPv6 protocol. Unfortunately, it is not flashable with OpenWRT or DD-WRT presently.
As we have Comcast, our cable modem acts as a dumb modem according to the customer support guy I talked to, and our router is the one that asks for the IP address from DHCP. Thus, when Comcast switches over to IPv6, I don't believe my existing router would work, correct?
My idea is to take a Linux box and put two NICs and a wireless adapter in it, using IPCop or Smoothwall to set up a router. I could then enable IPv6 support for when we have IPv6 with Comcast. Is that possible? Would there be a way to get BIND to hand out private IP addresses in the same subnet on the both the LAN NIC and the wireless card?
View 1 Replies
View Related
Mar 26, 2009
These r IP provided by my ISP that i've put on Fedora 8:
WAN IP:xxx.xxx.xxx.17 (eth0)
Subnet:255.255.255.252
Gateway:xxx.xxx.xxx.18
Valid static(public) IP set of 2:
IP:xxx.xxx.xxx.147 & 148 (eth1, eth2)
Subnet:255.255.255.240
i want to run xxx.xxx.xxx.147 as a web server & xxx.xxx.xxx.148 as a ftp server. but I'm able to ping only xxx.xxx.xxx.17(WAN IP) from outside world. Can any1 tell me that how can i bring my 147 & 148 IP online without router.
View 6 Replies
View Related
Nov 6, 2009
I have a desktop PC running Ubuntu 9.10 and Windows 7, and a Eee PC 701 laptop running EasyPeasy Ubuntu 9.04. I'd like to connect the desktop to the laptop with a wired connection (eth0), then the laptop to my ADSL router using wireless (ath0).
I have a crossover ethernet cable (I bought on ebay). I have set up my laptop with a static IP address on my LAN and it uses OpenDNS.
I have added this to /etc/sysctl.conf on the laptop:
net.ipv4.ip_forward=1
Then I tried this on the laptop:
sudo iptables --table nat --append POSTROUTING --out-interface ath0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface eth0 -j ACCEPT
This is a variation on what I found on other sites describing how to set up a router. I don't understand iptables very well, but I gather that the above two lines should set up forwarding so that traffic from my router to the laptop will be forwarded to the desktop, and vice versa.
But this doesn't work. The connection doesn't even establish between the laptop and the desktop.
View 12 Replies
View Related
Dec 29, 2009
I've just spent the entire night trying to get my computer to share Internet with my laptop. I have DSL Internet with the modem configured to bridge mode. On the openSUSE server I have two NIC's. When setting up the DSL (pppoe) it created a dsl0 which is using the NIC eth0. So now I have dsl0, eth0, and eth1 I configured eth1 for DHCP server. When I connect with my laptop using DHCP it gets an IP address just fine. However I can't access the Internet. I think my problem is in the Kernel IP Routing Table. Here is the output from /sbin/route -n
[Code]...
dsl0 obtains IP from ISP eth0 is set to DHCP although that confuses me because how can the same NIC have two IP Addresses? eth1 static IP 10.30.60.1
View 5 Replies
View Related
Jun 30, 2009
I want to configure a ACL Permit/ Deny, what steps I need to keep in consideration.
View 2 Replies
View Related
Mar 4, 2010
I am using centos box as a router. WAN side has a public ip and lan side also using a public ip. I configured dhcp server on the LAN side and it is working perfectly, pcs on the LAN side can able to access the internet.
Problem: Considering the fact that LAN IPs is using Public IP and it is presumed that from the internet it can be able to ping IPs inside the LAN but, alas, it couldn't.
No firewall has been config!
Question: What config should be done on the box so that IPs inside the LAN can be ping from the internet?
View 9 Replies
View Related
Mar 31, 2011
i must make this work with the use of virtual pc's. I have vm player and installed fedora ( the latest version ) and one xp . So i have 2 virtual pc's. I'm making it simple for start so i can add more pc's when i see that it is working. I have setup a dhcp server at the fedora virtual pc. The fedora virtual pc is like a soho router. The xp pc is getting ip from dhcp while the fedora one has a static one.
My pc is behind an adsl router. Both virtual pc's can see each other which means i have no connectivity issues.Im trying to setup a squid proxy ( transparent one ) so for example the xp pc can access porn sites and such. I used all required configuration for the squid to work and started the service. Ive also inserted with iptables the commands to forward all incoming port 80 packets to port 3128 ( the squid ). It doesnt seems to be working and i thik i know why but i dont know how to fix it.
Because the xp has a gateway at 192.168.1.1 ( the adsl router ) packets go directly to it and not to the soho router ( fedora virtual pc as i intend to do) What can i do to solve this problem ? How can i forward all packets to go to the fedora virtual pc first and then the fedora pc to forward them (if necessary) to the adsl router? PS. I used Bridged connection on the networking configutration on the vmware player ! If you also want i can post the code for squid or iptables if needed !
View 1 Replies
View Related
Feb 6, 2010
I have got a Laptop running Arch Linux and a Macbook. I have got a wireless network via my broadband router and get acccess both laptops remotely via ssh and sftp.I have been trying to set up NFS on both laptops with th intention of backing up one laptop to the other. I have installed the necessary file on both the laptops and have also set up the exports file as per instructions on the Arch Linux wiki.
View 3 Replies
View Related
Dec 25, 2010
I want to use a linux computer as a router in a medium sized organization. we have around 10MB internet and we have to distribute it among some 2000 pcs. so i have a computer available, and wanted to do some bandwidth management on it (with tc). want to know if this is possible or if it might create a bottle neck.(the internet is coming from 2 different ISPs). Using a router is not an option, coz our organization is happy with what they get currently BUT since its unmanaged it has lots of problems, and also there is no money for buying a router
View 9 Replies
View Related
Jun 6, 2010
have Unix and Windows experience. So will need some hand-holding.Need help getting my wireless network to work on my newly installed Oracle Linux on Dell laptop.Not sure what wireless card is installed, or it's mac address (though I can boot into windows and get that info I don't want to - it'll be kind of a let down if I can't fix it all thru Linux).Install has detected a Broadcom wired card, but not the wireless. Funny thing is that it detected the Bluetooth
View 2 Replies
View Related
Feb 6, 2010
I have a router with 2 IBM Thinkpads connected. One Thinkpad is running Ubuntu, and the other is running XP.
They connect to the router with no problems.
I installed Ubuntu on a Sharp Moebius laptop and plugged in the network cable.
NOTHING.
I have tried pinging the laptop; nothing.
I am not sure where the problem is, because my Thinkpads have no problems connecting to the router, with both Ubuntu and XP
View 9 Replies
View Related
May 11, 2011
i wanted to know if i can use my laptop as a wifi router; with encryption password and all security so if another computer is in the range can detect the signal and then try to connect to it with the encrypt pass.
also i have one more doubt. can a wireless router be used as a wifi ethernet card and detect wifi signals nearby and connect to internet. suppose i have a wireless router and i connect it to my desktop(with lan cables) which has ubuntu installed, and theres a wifi connections nearby can i connect the desktop to the internet.
View 5 Replies
View Related
Jan 6, 2011
My Desktop is wired through eth0 to my wireless router. The router is connected to the internet. the ipaddress leased to my desktop was done with dhcpcd. My laptop is connnected to the wireless router through the wifi card known as device eth1 and i used dhcpcd for that also. How can I network my laptop via wifi through the router to the Desktop?
View 7 Replies
View Related
Aug 2, 2010
is it safe to use a wireless router on my computer but still keep all my info safe that i am working on in ubuntu forums
View 3 Replies
View Related
Sep 1, 2011
I have read in a forum that a computer can have the same MAC Address with its router in the sane LAN but how is that possible? Isn't every MAC unique? Also I have not understood, when we send a packet to a PC that is not in our LAN the packet should have the IP Address or the MAC Address of the computer that we want to send?
View 3 Replies
View Related
Sep 20, 2010
I have a desktop computer (Ubuntu) connected to one of the LAN ports of the Cradlepoint MBR1000 router via an Ethernet cable. I also have a Verizon mobile broadband USB modem (USB760) plugged into the USB port of the Cradlepoint router.I also have a laptop (Ubuntu) with a wireless wi-fi adapter (802.11g). The laptop also has an Ethernet card but I'm not using it. The desktop computer does not have a wi-fi adapter, only the laptop does.
With the above setup, I have Internet access to both the desktop computer as well as the laptop computer, which I am well pleased with.Is there a way I can have file sharing between the desktop and the laptop, or at least ping between them, the way I have it set up? I can't use the ad-hoc method because for that to work each computer needs a wi-fi adapter. The router is using DHCP but can also be configured manually.
View 14 Replies
View Related
Apr 12, 2009
I'm sure that some of us techies have found the need from time to time to have a portable wireless bridge (see ascii art below) on our jaunts into the big bad user-woods, and I am here to ask the question of HOW to pull this off, with the least installation/configuration possible, as my tech lappy is also my main computer. What I want to do is this:
Code:
(ISP) -> (wlan0 - [MyLappy] - eth0) -> (Client computer)
Basically, thats a mess, so i'll explain it further:
wlan0 grabs the netz, and a computer connected to eth0 via switch/router/crossover cable can access those netz.
1. No configuration on the client would be prime choice rib for me.
2. Client should be any OS/Arch.
Any grand ideas out there? Currently using FC10, with various extra repos enabled.
Oh, and N00by alert, I'm learning quick, and am not shy to try new/complicated things, just bear with me!
View 4 Replies
View Related
Mar 12, 2010
I've not changed my configuration, but after temporarily unplugging my laptop from the router, I can no longer persuade it to connect again.Have restarted it repeatedly, but to no avail.A similar problem has been occurring with my Huawei 3G Dongle which has suddenly started behaving.Are there any troubleshooting guides for the Network Manager's wired connections? Don't know where to start.
View 5 Replies
View Related
Jun 18, 2010
\How can i setup my computer (currently running Ubuntu 10.04 lts) into a router so that other laptop can have a wireless connection to it and be able to access the Internet?
View 4 Replies
View Related
Jan 21, 2011
Running Ubuntu 11.04 on a Gateway LT3103U netbook. It's running fine except for that fact that when it goes to sleep (timeout or lid closed) or going into suspend or otherwise restarted/shutdown, my router restarts. It's a DLink DIR-655 that has been working fine until I changed this netbook to Ubuntu.After installing Ubuntu on the netbook, it found my SSID being broadcast and I added the connection by supplying the WPA2 password. I have full network access (local and internet).
It's just the router restarts and all my other machines lose connections. The router is using DHCP but supplying IPs based on MAC. Netbook is set to use DHCP.
View 3 Replies
View Related
Aug 1, 2011
I just installed 11.04 on my laptop and the wireless works fine connecting to a AT&T 2Wire router when the ac power adapter is connected. When running on battery power I stay connected to the router but barely any information is transmitted. ie. if i restart the router connection on my computer I can load a web page like google.com then nothing else will work unless I restart the connection again. If I am right next to the router it will continue to work but very slow ( takes about a minute to load ......com when it only takes 2 seconds on ac power ). When I run windows 7 everything works fine when on battery power.Also every thing works fine on a linksys router with ac and battery power.Dell Inspiron 14R Processor: i5-2400MWireless Card: Intel Centrino Wireless-N 1030Ubuntu 11.04 Natty Narwhal
View 1 Replies
View Related
Jan 25, 2010
I have a machine running linux with 3 ethernet interfaces attached.
My Ifconfig:
My route output:
eth0 is attached to a laptop, eth1 is attached to a PC. eth2 is attached to a DSL modem, and the server is successfully acting as my internet gateway. The trouble is, my PC cannot see my laptop and vice versa. E.G. cannot ping, host seems down.
View 5 Replies
View Related
Apr 4, 2010
I have a Belkin Wireless G F5D7230-4. I was attempting to configure a wireless card on another computer on my network when it froze during the reboot phase after making settings adjustments. The wired connection is fine, except on that computer that I was making the adjustments from. It won't connect at all. I plugged a friends netbook into the same wired line and it connected. Also there is no wireless signal on any laptops. Mac, Win Linux, don't matter. I tried all the various methods of resetting to default but still when I try to access the router's config page @ http://192.168.2.1 I get the error Code: The server at 192.168.2.1 is taking too long to respond.
[Code]...
View 2 Replies
View Related
May 18, 2010
I'm trying to make my wireless router always give me the same ip address every boot (192.168.1.100). I do not have a static ip address from my isp.
Everything I've tried from online help has made my internet break and I'm not even sure what exactly I should be searching for on google.
Ultimately, I'm trying to get my wireless router to forward ftp requests to my computer which shares the network with an xp machine. I think this is the way to go about it.
View 8 Replies
View Related
Aug 7, 2010
I'm using a cross-over ethernet cable to connect a Desktop Windows 7 box, and a laptop running on SUSE 11.2. I want Windows to connect to the internet via the laptop's wireless interface.
View 1 Replies
View Related
Apr 4, 2011
just switched from Windows Vista to Ubuntu 10.10 on my Toshiba laptop and I'm loving it, except for some wireless connection problems. About 70% of the time, my computer is unable to find any wireless signals whatsoever, despite being right next to the router. When it does find the signal it connects fine and runs great, but most of the time it doesn't show any signals at all. I can't find any pattern to when it does or doesn't find the signal. My result for the "sudo lshw -C network"
[code]...
View 2 Replies
View Related