Ubuntu Networking :: Stop Internet Access From Eth1?
Aug 24, 2010
I have a bit of a "unique" situation here. I have myself plugged into two networks - since we run two networks here at work (long story, we merged and never combined them due to two different companies) and want to block ALL internet access off eth1, and only have it off eth0. I only want traffic from 192.168.67.1-192.168.67.255 allowed on eth1, but everything allowed on eth0. Or is there a way for the internet/applications to be on eth0 instead of eth1? Would I use iptables or something?
View 4 Replies
ADVERTISEMENT
May 11, 2011
im a linux noob dont get techy ill die of brain fry im running a craft bukkit minecraft server on my 11.04 ubuntu server. however the server uses my only 10m Ethernet cable that i normaly use for my ps3 (i will NOT go wireless. i hate it (or dont like it)) therefor i found an old PCI NIC in an old computer, its a 10/100 realtek one. ifconfig detects it (after two commands:
Code:
ifconfig eth0 up
dhclient eth0
)
now i need to send the internet to my ps3 too.i know the connection wont be blazing fast but isnt it okay?it musnt interrupt the minecraft server. if you need info just ask. ill try and provide them.
View 1 Replies
View Related
Nov 8, 2010
A couple of days ago I Obtained a spare computer and installed fedora 14 on it, just to try it out. I only have experience with microsoft windows so I'm new to this system. The OS seems to work fine but I can't browse the internet with firefox. I'm using a speedtouch 546 v6 modem with adsl(wired). The network manager indicates that the wired connection "auto eth1" is active. The previous OS was windows xp. I was able to browse the internet whit this OS. I removed it because it was crashing all the time (illegal version).
View 10 Replies
View Related
Dec 1, 2009
I have a Fedora 11 system and cbq.init-v0.7.3 in it. Now I want to restrict upload speed from my ftp server to Internet (eth1). According to docs I've made a simple file /etc/sysconfig/cbq/cbq- 00.inet_upload_restrict:
DEVICE=eth1,100Mbit,10Mbit
RATE=800Kbit
WEIGHT=80Kbit
PRIO=5
RULE=:20,
So as you can see I want to limit outbound traffic on eth1 from my ftp port 20 to any to the 800Kbit/s (100Kbyte/s). Now I do cbq start, it says: find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments. but it starts and works. Now I check the speed and it is...
View 3 Replies
View Related
Sep 1, 2010
I am trying to connect my desktop to my laptop over a non-internet connected LAN, but when i enable the LAN connection on my desktop (the one with the wireless) its internet stops working.
it is a very similar problem to this except that i am using ubuntu for the machine with the two connections.
right now i have my wireless on the 192.168.1.* address space, while the LAN is to be on 192.168.5.*
note: my goal is not to share internet with my laptop, just be able to connect to it and the internet at the same time.
desktop: ubuntu 9.10 , wireless and LAN
laptop: windows xp, LAN only
View 9 Replies
View Related
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
Aug 19, 2009
5.10 Breezy configured as machine controller. Works great eth0 is a fixed IP to communicate with controller comms board. Not easy at all to alter - the comms board is hard coded to listen on eth0 for commands.
I can use eth1 as the default gateway and ping google.com, etc. But when I now attempt to communicate with the controller with netcat, e.g.
Code: echo !HH | nc 192.168.1.6 80
I obviously never get an answer since the request is passed via eth1. Using the -g option with netcat doesn't work either. I had a look at iptables but it doesn't seem to be able to do what I want. How I can still use eth0 as my communication port to the controller whilst eth1 is the default gateway?
View 17 Replies
View Related
Jul 30, 2010
I try to generate a server client code. What i try to do is sending video streams from eth0 and eth1 to the other server programs' eth0 and eth1. In order to do that, i decided to use SO_BINDTODEVICE. But the code is not working. Am i misunderstood the usage of SO_BINDTODEVICE.
1-Defining two ports
2-Defining two sockets
3-Assigning host ips on them
[code]....
View 3 Replies
View Related
Feb 5, 2011
I am using squid in my Linux box. I want to allow my office staff that they may use internet from Monday to Friday.The IP range that they are using is 192.168.1.20. to 192.168.1.50 In /etc/squid/squid.conf file under acl tag
Code:
acl weekend time A S 00:00-23:59
acl myoffice src 192.168.1.20 192.168.1.50/24
http_access deny myoffice
is it correct or I have to add some things more to stop internet access only on Saturday and Sunday.
View 1 Replies
View Related
May 29, 2010
Is there a way to stop net access if a vpn is disconnected? I will be using a vpn for all my internet access on a specific machine, but if the connection is dropped, I don't want that box to continue to have access to the net until the vpn is re-established.
View 2 Replies
View Related
Dec 31, 2010
I managed to configure my W890i phone to get access to internet through an ubuntu-based computer. It's very easy to use the phone to give internet access to the computer, but the opposite is quite more tricky. For that I've done the following
----On the phone---
-Set the USB network option to "through computer", so that the phone uses the computer's internet connection and not the opposite.
-Decide and set "Shared Network" parameters: user, pasword and workgroup.
-In "conectivity-> internet connection" set "allow local network" to "yes"
----On Ubuntu 10.04---
-Install samba, samba-client, smbfs, smbclient, firestarter and dhcp3-server
-Configure Samba (System-> Administration-> Shared folders): same workgroup as in the phone, add new user (the phone), passwd this new user. In my case the user was called "w890i" and the password given was the same.
-Once the phone is connected to the computer through USB (then select "phone mode"), a new connection appears in NetworkManager: usb0.The aim is to create a shared network that gives internet access to this device. Edit the IPv4 parameters of this new connection, set them to Manual and give an IP adress (192.168.0.1) and a subnet mask (255.255.255.0); the rest of the fields are left empty.Connect this network.
-Set firestarter to use dhcp3: sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd
-Launch firestarter and follow the wizard. Set "allow internet shared connection", choose the device for the primary internet access, and then the device for the shared network (usb0). Then change the settings for firestarter: activate DHCP for local network, set IP to the one we gave before (192.168.0.1).
-Open dhcp3-server config file sudo gedit /etc/default/dhcp3-server And set INTERFACES="usb0"
-Set the policies of firestarter: in incoming connections, allow connections from the IP adress given to the phone (192.168.0.1). Then add rules for the ports that need to be open for this connection. I opened HTTP, HTTPS, SMB, SMTP, POP3, IMAP, IMAPS, DHCP for all the connections in the local network.
-Apply policies and start the firewall.
------------
After all this, the phone can access the internet through the computer. Two problems appeared:
1. I couldn't get access to https sites, like webmails. The phone gave a "communication error". But then I tried with Opera instead of the browser built in the phone's firmware, and I could finally get to https sites.
2. I couldn't retrieve mail, neither POP nor IMAP nor IMAPS. I thought it was a firmware problem again, and I tried out several mobile phone email clients written in java, but none of them worked.
So this is at the moment the problem. If I connect from the phone to the internet directly through 3G, the email clients work for all my accounts. I don't think it's a firewall problem, because the ports are opened for this connection
View 3 Replies
View Related
Jul 6, 2011
I connected my laptop running with Ubuntu 11 in the LAN but I couldn't access internet.But I could ping to the other computers connected in the LAN. I tried the same thing with windows 7 in the same laptop and I could access internet.
View 1 Replies
View Related
Feb 5, 2011
I am using squid in my Linux box. I want to allow my office staff that they may use internet from Monday to Friday.The IP range that they are using is 192.168.1.20. to 192.168.1.50n /etc/squid/squid.conf file under acl tagPHP Code:
acl weekend time A S 00:00-23:59
acl myoffice src 192.168.1.20 192.168.1.50/24
http_access deny myoffice
[code]....
View 1 Replies
View Related
Feb 12, 2010
Useing gnome network manger. I thught that is DNS resolve problem, and wrote in linksys router the same DNS as 3g huaweii modem use. Steel the some result. NO INTERNET. Change for static ip in router and try use the same gatway , but steell can't use connected at the same time to internet with 3g and local router.
Only one devace at the same time, Router have no any acces to internat. SO why 3g internet stoping working after connecting router to LAN ports? Has it some thing to do with subnet or ip range and routing table?
View 1 Replies
View Related
Jan 13, 2010
how can I send internet from wlan0 to eth1 .
View 1 Replies
View Related
Sep 27, 2010
I have a hardware device with two ethernet ports, eth0 and eth1 running Centos 5. Basically my goal is to forward packets from eth0->eth1 and eth1->eth0 as well as get a copy of these packets for analysis. If I set IP routing to do the forwarding then I won't get a copy of the packets for analysis.
View 3 Replies
View Related
Mar 13, 2009
I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....
View 2 Replies
View Related
Aug 26, 2010
I have a linux box (fedora) with two ethernet cards eth1 and eth2. On eth1 I successfully configured a PPPOE internet connection. Such that from the server I can browse the internet. On eth2 I wired it to a wireless router essentially to provide the wireless cloud. On eth2 I also configured dhcp, such that the Linux box is both PPPOE and DHCP server.However my clients on the LAN cannot access the Internet.
On passing the routing command I get
Destination Gateway Iface
196.44.x.y 0.0.0.0 ppp0
192.168.1.0 0.0.0.0 eth2 (my subnet)
0.0.0.0 0.0.0.0 ppp0.
The router (functioning as a wireless access point mainly) has a fixed IP address of 192.168.1.2 and eth2 has IP address 192.168.1.1. The dhcp file running on Linux has been set with option router (Gateway) 192.168.1.1. I cannot figure out how to correctly set the routing table such that my clients on wireless can access the internet cloud. I googled and googled but no solid solution. Any suggestions?
View 3 Replies
View Related
Oct 4, 2010
I have a centos5.3 server. I want to configure it as transparent squid proxy server. Internet is connected to eth0(192.168.0.100) and lan is connected to eth1(192.168.200.0/24) and eth1 ip is 192.168.200.1 .
I have configured it as dhcp,squid and its working fine.
Now I want to configure it as a transparent,so that no one has to manually configure in browser.
I just added a line
Code:
http_port 3128 transparent
to make it transparent.
Now while adding nat rules,
Quote:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
code....
Internet is totally blocked on eth1. And after stopping the firewall the internet comes.
View 14 Replies
View Related
Nov 25, 2010
I'm trying to write an iptables config file, but got stuck.So I want to define an IP range that allows full access eth0-eth1 forwarding, and another that is allowed to access some special ip-s. The first part works, I could make the range has full access:
iptables -A FORWARD -m iprange --src-range 192.168.80.20-192.168.80.40 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -o eth1 -i eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
But cant find out, how tom make the second rule. How could I put speicified target ip-s in this? I've tried to make a new chain:
[Code]...
View 1 Replies
View Related
Feb 5, 2011
Could you pleaseme out.I have installed Virtual BOX on windows 7.Ubuntu i have installed on virtual box.Now i want to access internet from the Ubutu VM.
View 5 Replies
View Related
May 16, 2011
I'm trying Ubuntu 10.04 but I can't figure out how to connect to the Internet. I've run lspci -k & sudo lshw -C. This is the result code...
View 3 Replies
View Related
May 27, 2011
I am new to Linux, But, I installed it, all went well, but now, I can't access the Internet.So, I don't know what info you guys need, so just ask.Also, if it helps, I am using Ethernet (Well, I think it's Ethernet, it is a yellow cable with a rectangle end.
View 8 Replies
View Related
Jan 25, 2010
I can not access the internet from within ubuntu. I have tried pidgin firefox and ping but I do not get a reply with any of them. I do however get full access using Virtual Box OSE running Windows server 2003 running inside the machine. This is not a one off as I often have trouble connecting to internet from inside ubuntu but usually disabling then enabling networking works.
My system:
OS: Ubuntu 9.10
Wireless card: Edimax wireless 802.11b/g Turbo Mode PCI adapter.
Here is the corresponding bit from lshw:
Code:
*-network
description: Wireless interface
product: RT2561/RT61 802.11g PCI
vendor: RaLink
physical id: 0
bus info: pci@0000:05:00.0
logical name: wmaster0
version: 00
serial: 00:1f:1f:24:43:ca
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list logical ethernet physical wireless
configuration: broadcast=yes driver=rt61pci ip=192.168.1.255 latency=32 multicast=yes wireless=IEEE 802.11bg
resources: irq:20 memory:ea100000-ea107fff
I'm really confused as to why a VM would be able to access the net and not the host.
View 12 Replies
View Related
Jan 5, 2010
I have a Compaq Presario R3000 with Ubuntu 9.10 32 bit that I just installed last night. I'm using a Zyxel G-102 Wireless card and Actiontec GT701WG wireless modem.
When I try to connect to the 'net, the network does show up and it connects strong (100%). It also shows multiple neighbors networks. It pings at 99% success (with over 900 sent as I write this) but when I open Firefox it can't connect, it just times out. I've used WEP security and have switched off security as well. I tried hooking up to the modem via USB and get the same result. It acts like a Firewall issue but there isn't one installed - at least that I can find and the Firewall in the modem is off. I ran FF in root with gksu firefox as suggested in another thread. I tried www.ubuntu.com and the header loaded but that was all. Then it timed out.
I'm new to Linux but have used Puppy Linux with this machine and card, etc. so I know it can/does work with Linux. I wanted a more refined distro and chose Ubuntu.
View 9 Replies
View Related
Jan 21, 2010
the bsnl modem cannot access the ubuntu 9.10
View 2 Replies
View Related
Feb 13, 2010
I have a usb modem : huawei e220.I am using ubuntu 9.10. I can't access the internet using it. I made a connection form the mobile broadband tab but every time it disconnects .Ubuntu identifies the modem but every time i try to make a connection it fails.
View 5 Replies
View Related
May 29, 2010
I have used other distros on and off in the past with no trouble, but for some reason I seem to have had this problem with several versions and flavours of Ubuntu on various systems. I've never solved this problem the previous times I've had it, just given up. But this time I actually need to get this working. I've recently upgraded my computer, so my old system has been relegated to HTPC duties in my lounge. I installed Ubuntu 10.04 and I'm having issues getting internet access with some programs, while others work fine.
Firefox and Evolution haven't been able to access the internet from the start.Empathy IM has no trouble connecting to my MSN and Facebook accounts.I had no trouble downloading and installing Google Chromium browser through Ubuntu Software Center, and have no trouble accessing the internet with Chromium.On the first boot after the install, Ubuntu automatically told me to update my nVidia drivers online, and did so without error.Update Manager detects updates, but fails to download them.
I successfully and flawlessly downloaded installed XBMC Media Center and some related skins and things through Synaptic, but XBMC cannot access the internet. However it can access shared files over my LAN, including Windows 7 shares.Ubuntu itself cannot access any files on my Windows 7 computer. It can access the work group and see my Win7 shares, but refuses to mount them. Strangely, XBMC can access these shares and stream media from them fine.
View 3 Replies
View Related
Jun 21, 2010
I recently installed Ubuntu 10.04 and it appears to be working fine except for one problem: the internet access does not work at all. It is supposed to connect through a wired LAN and can talk to the router but when it comes to opening a webpage or pinging a server it doesn't work. Firefox says that it can't connect and the ping does nothing.
The computer can connect fine when booting Windows XP, but on Ubuntu it can't. Here are some details about the two OSes:
XP: Connects to network and internet
Ubuntu: Connects to network but can't mount the 'Windows Network' folder which is the only thing in the Network directory. Can't connect to internet.
I'm on a Dell Dimension 2400.
View 5 Replies
View Related
Jul 11, 2010
I just Don't get it I did a lot of research before I downloaded ubuntu to put on a netbook because I wanted so badly to get away from windows all the raves were about ubuntu being the best I really like it except I have been so frustrated because I am not able to set up a internet connection. I am trying to use my blackberry 8320 from tmobile for this with the unlimited internet and blackberry package the net book is an acer aspire AOA 110. This is what I have tried and I am getting so frustrated.
1. paired blackberry and laptop with bluetooth both recognize each other but laptop only recognizes the blackberry as an A/V remote control so it wont even let me set up DUN it gives me 3 serial port options to connect to Dialup Networking (which the connection fails on every time) blackberry desktop servive and blackberry bypass service which it will let me connect to and it tells me they are connected but when you go to the browser and try a website it wont open a web page.2. I have obtained all the information from tmobile and tried to use the network manager to set up a mobile broadband connection and I know I have put in the info right but the connection never shows up in the connection manager so I dont know what to do from here with this either.
3. I have downloaded berry for all and have all the necessary things installed then I can get it to recognize the phone but it wont connect either (I read that the program needs to be in root and I dont know how to get it there because I am so new to this linux thing I really want to learn this and this is why I am so frustrated but I need to have an internet connection.Oh and the wireless works flawless if I take the netbook any where there is WIFI it lets me on in two seconds so I at least know I can get on the internet that way but I do not always have acess to it so would really like to get this figured out.
View 8 Replies
View Related