Networking :: Setup A Wireless ISP Using Iptables, Tc?
Mar 29, 2010
I'm working for a very poorly configured WISP currently using Traffic Inspector on windows(url).
Currently each client is manually given an IP address. I'd like to eventually change that, but for now I just want to migrate the server to linux.
I intend to use iptables to forward only those who's mac and ip match against my list:
Code:
# Davit
$IPTABLES -A INPUT -i $INTIF -m mac --mac-source 00:00:00:00:56:83 -s 192.168.0.4 -j ACCEPT
I intend to mark the packets by ip address to limit them to their plan( there are two plans 256kbps and 128kbps)
Code:
# Mark packets to route
code....
exit 0
Does this make any sense? My Major problem is that I don't know how to keep track of how much each client has downloaded. Any advice on how to do that?
View 2 Replies
ADVERTISEMENT
Apr 28, 2010
I need to access a Linux box via SSH & Samba that is hidden/connected behind another one on its own local network.
Setup :-
Code:
A switch B C
|----| |---| |----| |----|
|eth0|<-->| |<-->|eth0| | |
|----| |---| |eth1|<-->|eth1|
|----| |----|
E.g., I need to SSH/Samba from A to C. How does one go about this? I was thinking that it cannot be done via IP alone? Or can it? Could B say "hi on eth0, if your looking for 192.168.0.2, its here on eth1"? Is this NAT? This is a large private network, so what about if another PC has that IP?! More likely it would be PAT?
A would say "hi 192.168.109.15:1234"
B would say "hi on eth0, traffic for port 1234 goes on here eth1"
How could that be done? And would the SSH/Samba demons see the correct packet header info and work??
IP info :-
Code:
A - eth0 - 192.168.109.2
B - eth0 - 192.168.109.15
- eth1 - 192.168.0.1
C - eth1 - 192.168.0.2
A, B & C are RHEL (RedHat)
But Windows computers can be connected to the switch. I configured the 192.168.0.* IPs, they are changeable. So I have read that this should be done via iptables? But what is the correct command line to do this? And where does one put permanent iptable config?
View 7 Replies
View Related
Jun 14, 2010
Here's my scenario:
I want it so any inbound traffic from dsl goes back out the dsl and same for rogers. I've been searching and playing with many docs with no luck.
Anyone know how I do this? The multiple routes are on the same device br0. (which I think is causing all my havoc)
View 1 Replies
View Related
Nov 27, 2008
We have a new Bussiness DSL line with 16 public addresses.What we want is to setup a DMZ to run some services and internet to the LAN. Here's a schematic of what we want:
Code:
Backup Internet Main Internet
connection connection
| |
| |
SDSL Modem BDSL Modem
[code]....
The webserver has the following settings:
IP: 12.34.56.125
subnet: 255.255.255.240
gateway: 12.34.56.126
What IPTABLES rules do i need to setup to "see" all IP's in the DMZ-2 from the internet?
View 2 Replies
View Related
Apr 16, 2011
I am running Ubuntu server 10.10 and trying to setup iptables rules in /etc/if-up.d/iptables
Quote:
root@host# cat /etc/network/if-up.d/iptables
#!/bin/sh -e
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
Problem is that iptables doesn't get updated and I don't see them when iptables -L is executed after reboot.
View 2 Replies
View Related
Nov 16, 2010
Trying to setup my box as a router on Ubuntu 10.04. When trying to setup a NAT rule in iptables 1.4.4 like so:
Code:
sudo iptables --table NAT --append POSTROUTING -o eth0 -j MASQUERADE
I keep getting:
Code:
Can't initialize iptables table 'NAT': Table does not exist (do you need to insmod?)
Looking at lsmod, it doesn't look like I have anything NAT related loaded ( I just have iptable_filter, ip_tables, and x_table ). Doing a locate nat, I find a module that looks like it should work. I'm running 10.04.1 LTS - Kernel is 2.6.32-25-generic #45-Ubuntu SMP and it is pretty much stock - haven't done anything fancy... this module looks promising:
Code:
/lib/modules/2.6.32-25-generic/kernel/net/ipv4/netfilter/iptable_nat.ko
but loading it and I get:
Code:
-1 Unknown symbol in module
View 1 Replies
View Related
Jun 18, 2010
The following is my setup. wireless server (ip of this server is 192.168.1.1) -- target board ( wireless client [ip of this is got for wireless server is 192.168.1.3 ] , bridge (192.168.36.1) )-- linux pc ( 192.168.36.3) as show above i have target board for that i have a wireless interface and a linux pc is connected to target board.now the ips are like this for linux pc 192.168.36.3 and my target board bridge ip s 192.168.36.1
my wireless interface got ip from another server like 192.168.1.3 ,now if i do ping on my target board for 192.168.1.1 it goes through wireless interface to the 192.168.1.1 wireless server.but when i do the same from target board connected linux pc its not pinging from linux pc i could able to ping to 192.168.1.3 but not 192.168.1.1 .I think i need to write a iptable rule properly on my target board to forward the 192.168.1.* packtes to wireless interface.
View 14 Replies
View Related
Aug 2, 2010
I recently bought the D-Link DIR-655 and DWA-140 wireless setup just before converting completely to Linux from windows. I'm sure there are issues with the ralink rt2870 chipset. I did get this to work after a few days of trying various things, but I could not get Wireless N to work, it only operates in G mode. This seems to have something to do with needing to use AES for N-mode. My wireless setup will only work with Ubuntu if I have TKIP set. This of course requires my entire network to work at G speeds. Consequently I am returning my D-Link setup tomorrow, and am looking for the community opinion on what Router/adapter setup is truly out-of-the-box compatible with Ubuntu 10.04. This Router will need to be compatible with other windows based computers on the network running the DWA-140 USB adapters. (I have no PCI slots available).
View 2 Replies
View Related
Sep 16, 2010
I have tried to get my wireless network setup for 5 nights now, with the same results. Everything in my system automatically installs during the initial installation, except wireless, which I have run into in the past with older pc's. This install however (from 13.1 install dvd) seems to not cooperate properly with the rest of my computer. After installing wicd, I attempt to connect to the wireless network. Immediately after, wicd shows in the activity bar 'flushing dns' and syslog spews out two notifications at the lower right. That's it. From there it hangs and will not terminate cleanly. If I log out from there, I cannot get back into my x window system. Startx merely creates an Auth file and fails to load, saying that it's already active on 0. Then, if I run shutdown -r now, the system only goes as far as disconnecting remote drives and then hangs as well. I have to perform a hard boot at that point. The only thing that circumvents this, is to installpkg remove wicd. After wicd's removal, then I can shutdown -r now and reboot, reenter X and everything acts normal - until a wicd install. Any thoughts, suggestions, anything?
Please be aware, that I am not familiar with outputting data into a file like in the other posts I've seen here, so if you need the output, please include the commands necessary.
View 8 Replies
View Related
Jan 13, 2010
I need to setting up my wireless connection on ubuntu.
View 1 Replies
View Related
Feb 1, 2010
I just finished downloading the latest version of xubuntu on my dell insperon 1545. I went to set up the internet and i cannot figure out how. In the top right corner the connection icon has only one option that i can select, and thats configure the vpn settings i think. I installed it using dual booting next to windows 7, so i keep switching back and forth trying to look something up and go back to see if it will work. However, i think i should make the point that i've never worked with any linux type o.s. before.
View 7 Replies
View Related
Feb 7, 2010
I've got Ubuntu 9.10 running on an old thinkpad with an 800 mhz cpu. It's running wifi through a g rated card and a g rated router. The internet is very slow. I'm thinking of upgrading to an n rated card and router. Or, is the system just too old and nothing is going to help with internet speeds?
View 3 Replies
View Related
Jun 7, 2010
I want to setup a wireless network in my lab. Main reason is that I want to be able to print from every computer, but it would also be nice if we can share files. I have three 64 bit machines, a netbook and 32 bit notebook and my internet goes via an Wifi router to which other Windoooze machines connect. I want to change to Lucy now and hope it is easier to setup the network in clean manner.
View 8 Replies
View Related
Nov 23, 2010
I am a new Linux user and Maverick Meerkat happens to be my first Linux system i installed. Setting up wireless was pretty easy in GNOME as it displayed my wireless system and i just entered the WEP key and i was all set.I decided to install KDE. After i installed KDE i wanted to setup internet There. However the KNetwork manager is not as friendly as Network Manager. It does detect my wireless router, but after i enter the WEP key it does not get connected.
It was asking me all sorts of question like SSID which i did not use in GNOME at all and neither do i know that information.I tried wcid network manager but removing network-manager and knetwork manager.wcid did get connected to my wireless but it was unable to acquire my IP address. (please do note that both k-network manager and wcid network manager work well with wired internet connection). Could you please help me setup internet in KDE? the truth is internet responds better in KDE than GNOME for my computer somehow.
View 1 Replies
View Related
Oct 6, 2009
I have D-Link DWA-110 wireless usb adapter.
$/sbin/lsusb
Bus 001 Device 002: ID 07d1:3c07 D-Link System Wireless G DWA-110 Adapter
View 2 Replies
View Related
Mar 22, 2009
I am trying to setup a wireless connection between F10 and a HP J6480. I dnloaded the linux driver hplip-3.9.2, disabled the SELinux and ran the install. When I choose method of connecting - wireless it would not discover the device. The only way was to enable the USB descovery. Doing so, the computer found the printer and all is fine. What am I missing trying to enable the wireless connection. Note, that during this process, the USB was not connected. Also, I dual boot with Vista and I can run the printer wireless.
View 7 Replies
View Related
Dec 20, 2009
In the process of making the jump from Ubuntu to Fedora and some of the file placement is catching me. Under Debian, I knew how to setup wireless from boot using /etc/network/interfaces and /etc/wpa_supplicant. Now, I know F12 uses /etc/sysconfig/network-scripts and /etc/wpa_supplicant/wpa_supplicant.conf, but I can't seem to follow the details. Can I use the same commands issued in /etc/network/interfaces in the appropriate /etc/sysconfig/network-scripts file? Can I, basically, copy my /etc/wpa_supplicant.conf to /etc/wpa_supplicant/wpa_supplicant.conf?
View 6 Replies
View Related
Mar 17, 2010
I have installed Fedora 12 on my inspiron 1545 laptop. I am trying to configure wireless and my gnome desktop shows it as disbaled. Following are the details. [root@Malapati devices]# uname -a Linux Malapati 2.6.32.9-70.fc12.i686 #1 SMP Wed Mar 3 05:14:32 UTC 2010 i686 i686 i386 GNU/Linux
[Code]....
View 2 Replies
View Related
Jul 14, 2010
To setup a Compact Wireless-G USB Network Adapter (WUSB54GC) on Fedora 12 ?
View 1 Replies
View Related
Feb 10, 2010
Running Ubuntu 9.10 Ive just got my wireless connection working after first having got the wired eth0 connection working.
With the wired connection I could SSH into my server through my firewall/router (via a forward). I can run up VNC, from there firefox, browse the web - all is well.
I have now setup the wireless connection, using a static IP, and I can likewise SSH into my server. I can run up VNC. I can ping my router. I can log onto it via VNC. I can browse to my router. But I cant browse the internet.
But I cant ping google.com. The reason is there is no host lookup service. Nslookup eventually says no servers could be reached.
So specifically, if I ping www.google.com Im told "unknown host". If I do an NSlookup on it I get timeout, no servers could be reached. However if I ping 66.102.11.104 I get responses.
I see no relevant entries in my firewall log.
Unfortunately I cant traceroute because the package isnt found - and of course I cant install it because I have no internet !
Strangely (to me at least !) if I then tunnel through SSH and browse the web, I have no problems. It works ? I know I am browsing through my SSH tunnel because whatsmyip gives the IP of my router at home, not where Ive SSHd in from. I can surf just fine.
why I cant do host lookups any more (and this did work with my wired connection, but whether its related to my change to wireless, or static IPs or both I cant be sure - it certainly appeared to happen at the same time). And, more to the point, what I need to look for/do to rectify it ?
As a bonus Id be interested in why I can SSH and browse via tunnelling but not direct from my server (via VNC). Just for interests sake !
if config reports :
wlan0 Link encap:Ethernet HWaddr 00:90:4b:27:ae:17
inet addr:192.168.1.69 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::290:4bff:fe27:ae17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[Code]....
View 1 Replies
View Related
Apr 22, 2010
My adsl modem is in bridge mode. I can connect to internet via pppoe . pppoeconf recognise the pppoe in eth0 and setup a connection and I can use it. How can I setup a pppoe connection using pppoeconf so that it uses wireless ? I set the wireless mode to bridge in modem settings. But, after that the access point stopped appearing in "aps in range" in network manager and I can't connect to it. pppoeconf also doesn't recognise wlan0 as a valid pppoe link . but dat is normal since i don't think it can check if wlan0 is pppoe without wlan0 being connected to the modem's wireless network. How can I connect to Internet with modem in bridge mode and connections via wireless interface of modem? Is pppoe over wireless even possible ? coz the datalink layer of wlan is not ethernet rite?
View 6 Replies
View Related
Aug 31, 2010
I tried setting up a adhoc wifi in my debian laptop, so that my other laptop running Ubuntu could connect to it. Though the access point made on Debian laptop is visible on Ubuntu laptop, I could not establish a connection.Then I used create new wireless network tab to create a connection named test1. Though it shows up on Ubuntu box, i couldnt connect to it.
View 4 Replies
View Related
Sep 22, 2010
I use 9.10 on a Lenovo t410 and have installed a Brother MFC 495CW. I've been able to get the wireless printer operational, but have only been able to get the scanner operational via a USB cable. I've tried the instructions on the Brother Linux page but to no avail.
View 2 Replies
View Related
Jan 26, 2011
Just installed ubuntu 10.10 on a Compaq Presario X6000 laptop... installed it inside Windows 7 and now I'm having problems going to the internet (wired.. or wireless).
View 3 Replies
View Related
Jun 15, 2011
I have had a vz modem card for some time now and it worked fine. However my employer upgraded from a PC5750 device to the new PC770 device. When I plug the old device (now deactivated) it shows and use to work fine. When I plug the new device in Ubuntu does not pick it up and show it in the networking options. I use to see it i n the upper right where I would select my wireless networks. I do get a green light on the card so I know its powered. So what do I need to do to get my Laptop to see the new card?
uname -a Linux mylt 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
View 2 Replies
View Related
Apr 14, 2011
I am having difficulties setting up Symmetric NAT through iptables.
First things first:
"A symmetric NAT is one where all requests from the same internal IP address and port, to a specific destination IP address and port, are mapped to the same external IP address and port. If the same host sends a packet with the same source address and port, but to a different destination, a different mapping is used. Furthermore, only the external host that receives a packet can send a UDP packet back to the internal host."
Need:
I am working on a SIP application and SIP apps face a problem with NATed networks. STUN is a solution to such a problem and my SIP application has an embedded STUN client functionality.
Scenario and Technical Details:
192.168.0.200
+-----------------+
| ClientA - My IP |
+-----------------+
|
|GW:
| eth0 eth1 (example public IP address)
| 192.168.0.1 | 123.123.123.123
+-------------|-------------+
| NAT1 |
+-------------|-------------+
|
|
|
stun.1und1.de |
+---------------------------+
| STUN Server |
+---------------------------+
I am using WinSTUN, which requires a STUN Server address (such as the one I specified above) to return my type of NAT. What I need to achieve is Symmetric NAT through iptables, on the GW server, only on my IP address (192.168.0.200). I don't want it to affect the whole network. I am running CentOS release 5.4 (Final), and iptables v1.4.10
View 1 Replies
View Related
Mar 16, 2009
I am trying to set up a wireless LAN using a Zdyas zd1211 USB adapter. I downloaded the .tar file, uncompressed it, then used make and make install. I then loaded the driver using modprobe -v zd1211. I have some questions:
A) After I performed all this, when I ran the Network Configuration Window, I can't find the Zdyas zd1211 driver in the list of supported wireless cards. Is there a configuration file I should edit to add this driver to system-config-network?
B) To which files should I add the modprobe, ifconfig and iwconfig commands or values so that the driver is automatically loaded and configured whenever I reboot the computer?
C) I am using FC8. What package supports the wpa supplicant?
View 2 Replies
View Related
Jul 10, 2010
I just installed Ubuntu 10.04 64 bit on my mac as a seperate OS, but I can't get my Internet working. It's wireless and Ubuntu isn't seeing any of the wireless networks in the area. I have installed ndiswrapper and tried installing a driver for my network but it didn't work.t=616801 but when typed in this code: "ndiswrapper -i bcmwl5.inf && modprobe ndiswrapper" I got the "No such file or directory at usr sbin ndiswrapper line 219" error
View 2 Replies
View Related
Aug 7, 2010
I have a computer with both wire and wireless connections. Wired connection works fine, but I would also setup the wireless connection.(I also have a dual boot on this cumputer with WinXP where both wire and wireless connections works fine. So, wire and wireless configuration of the actual router is not an issue here.)
At this point I just want to know the main/overview basic steps of setting-up the wireless connection on the computer. Also if you could suggest any links to guidelines for these steps. I have been thinking about something simple like this, but I might have missed a lotInvestigate if Ubuntu finds the wifi-hardware - the installed wifi card.Investigate if Ubuntu have an installed driver for this wifi-card.Configure the Wireless Network connection, like SSID.Unplug wire connection and reboot.
View 2 Replies
View Related
Dec 26, 2010
As I have recently figured out, it is very hard to set-up a Brother MFC-J415w wireless printer on a 64 bit machine, so to save you from spending hours searching the Internet and trying different drivers, I will tell you how to set one up.
Step one: Download the 32-bit driver from this link: http://welcome.solutions.brother.com...html#MFC-J415W. When prompted, save the file.
Step two: Open the terminal and type in the following commands:
Code:
mkdir /usr/lib/cups
Code:
mkdir /usr/lib/cups/filter
Code:
mkdir /usr/share/cups/model
Depending on what you've tried before, some of these directories may already exist. Step three: Type the following commands:
Code:
sudo -s
[code].....
View 1 Replies
View Related