Security :: Mount 2 Network Interface Card (NIC) And Make A Bridge

Apr 1, 2010

Actually i'm doing an ingenior training in SAGEM company, well i'm trying to develop an application which is able ti disturb the IP Network,my idea was is to mount 2 Network Interface Card (NIC) and make a bridge to pass the IP flow and to exploit the firewall Netfilter using iptables command.The application has to import a text file containing a binary array like this one:

0 1 0 : 0 corresponds to iptables -p ip ACCEPT
1 1 1 : 1 corresponds to iptables -p ip DROP
0 0 1

==> So the expected result is to have 5 ip datagrams dropped

My idea was: if 0 --> iptables -A FORWARD -p ip -m limit --limit-burst 1 -j ACCEPT
if 1 --> iptables -A FORWARD -p ip -m limit --limit-burst 1 -j DROP

The problem was: After executing the application and parsing the text file,
with iptables -L -v: i have

Code:
-A FORWARD -p ip -m limit --limit-burst 1 -j ACCEPT
-A FORWARD -p ip -m limit --limit-burst 1 -j DROP
-A FORWARD -p ip -m limit --limit-burst 1 -j ACCEPT

which is logic, but when i sniff with wireshark i find more packets are dropped(6,7 or 8 are dropped), like i had put more DROP rules. and sometimes i found the exact value(usually 5 dropped).

View 1 Replies


ADVERTISEMENT

Fedora Security :: Switch Off The Network Interface But Light Of Network Card Plugged In The Router Stays On (green)

Dec 26, 2010

I have a laptop connected to the the net thru an adsl modem, when I switch off the laptop network interface,(thru system-config-network) the light of the laptop network card plugged in the router stays on ( green) where as in my pc, when i do the same thing , the light of my pc network card goes off in the modem

View 5 Replies View Related

Ubuntu :: Enable Bridge Between Tow Network Card?

Feb 23, 2011

how to enable Bridge between tow network card.

View 3 Replies View Related

Networking :: Setup A Bridge Using Bridge-utils Within /etc/network/interfaces?

Dec 8, 2008

I want to set up a bridge using bridge-utils within /etc/network/interfaces like is shown here in this guide: [URL] The problem is that, at the same time, I want eth0 to have a specific static IP address. Right now I have a configuration for eth0. This guide tells me that I should not configure eth0 outside of the br0 configuration.

View 3 Replies View Related

Fedora :: Inactive Network Interface Card?

Aug 29, 2009

tell me how to activate my wired NIC permanently?Also, how do I disable the 'work offline' check box in Firefox.At present I am required to action both before accessing internet.

View 2 Replies View Related

General :: Displaying All Network Interface Card

Mar 31, 2011

i am new to redhat linux,how do i list all newly added network interface card.can someone kindly help me with this?

View 11 Replies View Related

Hardware :: New Network Card Not Mapping To Ethernet Interface?

Feb 21, 2011

I've added a 2nd ethernet network card into my linux box. After I installed it the box recognized the new card and mapped it to eth1, as I expect. I then configured the addresses and routing for my eth0 and eth1 interface. Since then I had shutdown my box.When I next started my linux box up only eth0 was present.`ifconfig -a` only displays eth0, but `lspci` lists both cards. How can i permanently map the new pci card to eth1?

Code:

scattaneo@unthread:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1a:a0:8c:61:49
inet addr:192.168.2.108 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: 2002:c0a8:6414:1234:21a:a0ff:fe8c:6149/64 Scope:Global

[code]....

View 5 Replies View Related

Fedora :: Bridge Interface Setup (VirtualBox And LAN)

Jun 28, 2011

Does anybody know how to setup bridge interfaces on fedora 15 (VirtualBox4 interface and my LAN interface)?

View 1 Replies View Related

Networking :: Creating Bridge And Adding LAN Interface

Jun 28, 2009

Setup : internet -- VirtualBoxHost -- WIFI-switch -- clients
VirtualBoxHost hosts several Virtual Machines and has 2 interfaces. Wan-interface is not used by VirtualBoxHost, but is directly mapped to the Virtual Machine Endian Firewall.

What I want:
Access to VM's for the Wifi-clients AND access from WiFi-clients to VirtualBoxHost.

What I have tried:
- create bridge
- add LAN-interface to bridge
- create tap0
- add tap0 to bridge

Virtual Machine uses tap0
Wifi-clients are connected via LAN-interface, via bridge, to VM's. But my host-machine is not accessible from a WLAN-client and also I can not access a VirtualMachine from my host-machine. A WLAN-client can connect to a VirtualMachine without problem. I think with my bridge the local LAN and the VM's are now connected. How to put also my host-machine in the LAN? As a LAN-client.

View 1 Replies View Related

Networking :: Transparent Router / Bridge - Ppp Interface

Jul 27, 2010

The challenge: I am trying to setup a piece of hardware that is transparent to the network that transfers ip packets between two interfaces without adding a "hop". Details The particular problem I'm having is that one interface is ppp, the other is ethernet. It is trivial to setup a bridge between two ethernet devices but I am having trouble finding anything for ppp<->ethernet.

Here, the ppp link is an internet connection, and the ethernet connection has exactly one device attached. Once the ppp link is negotiated, I want the ppp peer to think it's talking directly with the device on my ethernet interface and I want the device on my ethernet interface to think it's talking directly to the ppp peer.

Current solution: The best solution I currently have is to alter the routing table. When the ppp link is negotiated, I am given an ip address. I add a route that directs everything to that ip address to the eth0 device. I also set a default route to the ppp device. Now, anything that comes from the ethernet side gets forwarded to the ppp side, and anything directed towards my ip address gets forwarded to the eth0 side.

View 4 Replies View Related

Server :: Creating Bridge Between Ad-hoc And Wireless Interface

Oct 20, 2010

I was wondering if I could create a bridge between two wireless interfaces. So that when there is a WAN that filters MAC's, 2 different computers which aren't in the WAN white list can connect to the WAN via me. Is that possible? And how?

View 4 Replies View Related

Networking :: Adding Two Interface Cards To Bridge - No Connectivity

Mar 1, 2011

I have a network config as follows:
X.8 <---> X.41 X.40 <--->X.16
where X.8 and X.16 are 2 separate workstations and X.40/X.41 are two interface cards in the same machine. Now I apply brctl bridging in the X.40/X.41 machine by adding both the interfaces to the bridge and thereby connecting X.8 and X.16. This part is working perfect. But there is no connectivity between X.8 and X.41 and when I try to ping at X.8 to X.41 it gives Destination Host Unreachable. Is there a way to achieve this since I require some message to be sent from X.8 to the X.40/X.41 bridge machine.

View 4 Replies View Related

Ubuntu Networking :: Samba With Bridge Interface / Cannot Assign Requested Address?

Sep 17, 2010

I have two network interfaces in my pc eth0 and wlan0 and a virtual one br0.

router <= eth0 (0.0.0.0) => br0 (192.168.1.10) <= wlan0 (0.0.0.0) => other pc.

On startup of my pc (ubuntu 10.04 server x64), samba bind itself only to loopback network interface, as i can see when i do netstat -an , preventing me to enter in my shares from a remote pc.

Here is my configuration regarding samba network:

Code:
interfaces = 127.0.0.0/8 192.168.1.0/24
bind interfaces only = yes
and my /etc/network/interface
Code:
# The loopback network interface
auto lo
iface lo inet loopback
code....

Any idea fo speed up my bridge configuration or to force samba to wait unitl the bridge is ready?

View 1 Replies View Related

Networking :: Cannot Configure My Network Card / Make It Possible?

Aug 20, 2010

I am using Redhat enterprize linux and using ethernet card Realtek PCIe FE Family Controller. I tried to configure my network card. But unable to activate it as message appears "No such device found" I am using Dell inspiron laptop.

View 5 Replies View Related

Slackware :: Network Card Is Not Detected / Can't Seem To Make It Work

Jan 6, 2010

I've been using Slackware distribution for few years now, Setup new system with Xen Server 5.5 and installed Slackware 13 on it, but network card is not detected and can't seem to make it work.

View 4 Replies View Related

Fedora Installation :: "Error Configuring Network Interface" Halts F13 Upgrade With Atheros Card

Jun 6, 2010

After an online upgrade from f11 to f13, on rebooting the setup attempts to configure the wireless connection and fails with a not very illuminating "error configuring your network interface" notice, offering no option but to go back and try again, which of course fails again with the same error.

Wireless card is a D-link that works fine with the ath5k driver in f11.

how I can get out of this vicious cycle and proceed with booting the upgrade?

View 9 Replies View Related

Security :: Iptables -L Does Not Show In-interface Or Out-interface?

Feb 26, 2011

When I do...# iptables -L...I see rules in my INPUT and OUTPUT chains that look scary:ACCEPT all -- anywhere anywhere...but these rules only apply to the loopback interface. I tested it and the server cannot be reached on open ports from the outside world. How can I make iptables show the interfaces that the rules apply to?Otherwise, every time I do iptables -L it will scare the crap out of me.

View 3 Replies View Related

Ubuntu Networking :: Wireless Realtek 8185 Card - Can't Make An Ad-hoc Network?

Jan 11, 2010

The card is recognized by Ubuntu 9.10 and I have it in the network manager. I followed one tutorial about creating an ad-hoc network and all looked good, until I actually wanted to connect (or to be more precise, my machine is a host for other computers). The wireless icon just loops endlessly, without connecting and eventually I get "Wireless network - disconnected" message.

So, the main issue here is - connecting! I just can't. Also if you know/have some good tutorial for ad-hoc,

Code:
ivan@ivan-desktop:~$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:"internat3"

[Code]...

View 2 Replies View Related

OpenSUSE Network :: Create Network Bridge / Device Hooked Up Via Ethernet Had No Internet Connectivity?

Feb 25, 2011

I'm on opensuse 11.4 (11.3 won't work with my monitor).

My computer gets internet through wireless and I want to share that internet through its ethernet port. So far I've tried using Knetworkmanager to create a network bridge between my wireless and wired connections. I created a new wired connection and shared it using the ip address settings. I was able to get both connections active, but the device hooked up via ethernet had no internet connectivity.

I also tried this command:
echo 1 > /proc/sys/net/ipv4/ip_forward

but another test resulted in the same fashion (no internet on wired). I believe anything I add to /proc should have an immediate effect, correct?

View 9 Replies View Related

Networking :: Prevent Auto Up An Interface At /etc/network/interface File ?

Jul 18, 2011

I have a ppp0 entry with post-up options like this

mapping ppp0
map none photon-plus motorola
map timeout: 12

[code]...

View 8 Replies View Related

OpenSUSE Network :: Network Bridge Betw/ Eth0 And Wlan0?

Dec 24, 2010

I'm new to this forum site and I was wondering how can I bridge a network between the eth0 and wlan0 connections?my eth0 NIC is a RealTek RTL8111B 10/100/1000 Ethernet Card (OnBoard) and my wlan0 NIC is a RealTek RTL8187B 802.11b/g WiFi USB Adapter Card.Are there any utilities, such as bridge-utils that I can use, except for Firestarter since Firestarter states that the eth0 connection is not established, or do I right-click on the network icon and select Edit Connections and go to Auto eth0 and under the IPv4 Address setting and select Shared to other computers and run a live connection there?The main reason is that I need an Internet connection for my Xbox 360, which is connected to my Linksys WRT54G 802.11b/g Wireless Router, that has DD-WRT firmware installed and 4 WiFi hotspots for any wireless device, such as my PSP, DS, DS Lite, Wii, Laptop(s), my brother's PC (needs a WiFi card), and my dad's PC (needs either a WiFi card or an Internet connection from my brother's computer to my dad's PC)

Here are my Computer Specs:
ECS nForce6m-a Motherboard
2GB DDR-800 PC6400 Memory

[code]....

View 6 Replies View Related

Networking :: Xen Network-route And Network-bridge Setup?

Aug 22, 2010

I've currently got a Xen box with 3 Virtual machines on it, in a routed setup. I'd like to put them all on a private internal network as well, which I'm assuming I'd do with a dummy network card and a xen bridge, but I can't find any information about setting up the xen Bridging setup on top of the existing network-route instlal.

View 1 Replies View Related

Ubuntu Security :: Set TAP And Bridge Connection

Nov 3, 2010

My host is ubuntu 9.04 and the guest is winxp sp3. I need to use QEMU to monitor the network communication for security researches. But I failed to establish the connection between the host and the guest.

To build a TAP connection, I input commands as the following t.

How should I establish the TAP and Bridge connection in the QEMU?

View 1 Replies View Related

Fedora Networking :: Make ADSL Bridge Connection In 10?

Oct 2, 2009

"I am new to Linux. Could you please guide me how to make ADSL bridge connection. I have tried to make connection using Network manager. But, it some times works and some times doesn't works."

View 1 Replies View Related

Ubuntu Networking :: How To Bridge A Wlan Card In Managed Mode

Feb 3, 2011

I have 2 wlan cards. wlan0 and wlan1. wlan0 is in AP mode(Master mode) using hostap. wlan1 is connected to another wireless network and is in Managed mode. Now I want to make a bridge between wlan0 and wlan1. I do it like that:

ifconfig wlan0 0.0.0.0
ifconfig wlan1 0.0.0.0
brctl addbr mybridge
brctl addif mybridge wlan1
can't add wlan1 to bridge mybridge: Operation not supported

It doesnt work, because wlan1 is in managed mode. But Windows 7 can bridge 2 Wlan cards when one is AP and another one is STA. How to do it in Linux?

View 4 Replies View Related

Red Hat :: Add IPs To A Network Interface As Virtual Interface Like Eth0:0?

Apr 14, 2011

I found multiple sites explaining how to add IPs to a network interface as virtual interface like eth0:0. However I can add IPs to an interface as well using the ip command: ip a a 192.168.2.2/24 dev eth0 What I want to know is how I can make this persistent on rhel/centos.

View 2 Replies View Related

Fedora Networking :: Bridging NICs - When Use Brctl Command - Create A Bridge It Doesn't Let Add Wireless Card

Jul 9, 2010

I want to connect my modem straight to my fedora 13 box, using it as a firewall, and I want to use my wireless card to set up an ad-hoc to give internet to the windows computers in my house. My router has been messing up and I am trying to create a quick fix until I can solve the problem.

My eth0 has internet connectivity but when I use the brctl command to try to create a bridge it doesn't let me add my wireless card, wlan0, and also I lose internet while my eth0 is in a bridge. I am fairly new to Linux.

View 2 Replies View Related

Ubuntu :: 11.04 - How To Bridge Network Connection

May 5, 2011

First of all I have a Ethernet cable from the wall to my desktop then I have a Ethernet cable from my desktop to my laptop. Before I did a fresh install of Ubuntu 11.04 I was using Ubuntu 10.10 and I found a tutorial to make this network bridge work by changing settings in the Devices - Network Tools. I need to make this bridge work again and i totally forgot how and I can't find the tutorial.

View 1 Replies View Related

Debian Configuration :: Setting Up A Network Bridge?

Apr 9, 2011

I have two ethernet NIC's on my debian server. One built-in Realtek [eth0] (attached to internet), and a PCI Nvidia ethernet card [eth1] (attached to my Win7 netbook). I used this guide to setup the bridge: url. It worked when I was behind a router. But when I moved the computer in front of the router, to direct connect to the internet, the internet stopped functioning on any device that I plug into my Nvidia NIC. The name of my bridge is 'br0'. Does anyone know how to fix it, so I can route the internet to my second NIC?

My Win7 netbook displays this at an 'ipconfig' command:
Windows IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix:
Link-local IPv6 Address.....: fe80::143e:4cab:f802:8611%12
Autoconfiguration IPv4 Address..: 169.254.134.17
Subnet Mask.......:255.255.0.0
Default Gateway......:

My Debian interfaces file:

# 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 br0
iface lo inet loopback
# Set up interfaces manually, avoiding conflicts with, e.g., network manager
iface eth0 inet manual
iface eth1 inet manual
# Bridge setup
iface br0 inet dhcp
bridge_ports eth0 eth1

View 10 Replies View Related

Ubuntu Networking :: How To Setup Network Bridge

Jul 29, 2011

How do I setup a network bridge in Linux (Ubuntu)? I want to use my computer as a "router" for my Xbox 360.

View 2 Replies View Related







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