Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
09-10-2007, 07:52 AM
#1
Member
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC14 + 15/ OES / CentOS
Posts: 579
Rep:
iptables logging
Hello!
I need a PC sitting as a man-in-the-middle logging all the ip-Traffic as we have some strange connection problems.
I tought that I could use a fli4l pc but it does not work.
I would like to have a transperent bridge logging with tcpdump.
Could somebody help ?
I tried:
Quote:
echo "1" > /proc/sys/net/ipv4/ip_forward
echo " clearing any existing rules and setting default policy.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -F FORWARD
I have two eth`s
Quote:
ifconfig
eth0 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXXXX
inet addr:10.99.99.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107643 errors:0 dropped:0 overruns:0 frame:0
TX packets:388 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9516802 (9.0 MiB) TX bytes:34297 (33.4 KiB)
Interrupt:11 Base address:0x2000
eth1 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXXXX
inet addr:10.99.99.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3566 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:213960 (208.9 KiB) TX bytes:0 (0.0 B)
Interrupt:5 Base address:0x2080
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:188 errors:0 dropped:0 overruns:0 frame:0
TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20818 (20.3 KiB) TX bytes:20818 (20.3 KiB)
And I think here is the mistake, isn`t it?
Thanks
09-11-2007, 02:06 AM
#2
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835
what's the mistake? what's going wrong? you don't use ip forwarding on a bridge, only a router. similarily, when bridging you'd use ebtables to interfere with traffic, not iptables.
09-11-2007, 02:15 AM
#3
Member
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC14 + 15/ OES / CentOS
Posts: 579
Original Poster
Rep:
Well the pagages are not forwarded.
pc ---> eth0 Bridge eth1---> pc2
I can not ping pc2 form pc.
But i will take a look at this soon an write more infos.
09-11-2007, 02:25 AM
#4
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835
well there's no bridge configured at all by the look of it... check out the bridging howto.
09-11-2007, 02:37 AM
#5
Member
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC14 + 15/ OES / CentOS
Posts: 579
Original Poster
Rep:
Well, sure, thats true ...
i am just searching for a "advanced network" package für fli4l to create the br0 interface.....
09-13-2007, 01:49 AM
#6
Member
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC14 + 15/ OES / CentOS
Posts: 579
Original Poster
Rep:
So i finally got it working.
It is not to hard installing it with fli4l (which is really great for such a job).
All you need is the advanced_network package.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 02:38 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News