connect ebtables with iptables
Axel F <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have a question about to connect ebtables with iptables. If I execute the first line to broute the packets, I can't match the packets in iptables anymore. If I take the second line it works so as I expect it. But if this picture (http://ebtables.sourceforge.net/br_fw_ia/PacketFlow.png) is right, the connection with iptables must be possible in both cases?! Can anybody tell me the reason for this? 1: $EBTABLES -t broute -A BROUTING -p ipv4 --ip-protocol tcp -i $CLIENT_IF1 --ip-src 192.168.112.0/24 --ip-destination-port 80 -j DROP 2: $EBTABLES -t broute -A BROUTING -p ipv4 --ip-protocol tcp -i $CLIENT_IF1 --ip-src 192.168.112.0/24 --ip-destination-port 80 -j redirect --redirect-target DROP By the way - I tested it with the following iptables instructions: $IPTABLES -t mangle -A PREROUTING -p tcp --destination-port 80 -j LOG --log-ip-options $IPTABLES -t nat -A PREROUTING -p tcp --destination-port 80 -j LOG --log-ip-options $IPTABLES -t filter -A FORWARD -p tcp --destination-port 80 -j LOG --log-ip-options $IPTABLES -t filter -A INPUT -p tcp --destination-port 80 -j LOG --log-ip-options $IPTABLES -t mangle -A INPUT -p tcp --destination-port 80 -j LOG --log-ip-options thanks for help ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642