From mboxrd@z Thu Jan 1 00:00:00 1970 From: james Subject: tc redirecting vpn traffic, ifb0 output not readable? Date: Sun, 15 Sep 2013 22:59:09 +0200 Message-ID: <52361F9D.30506@yahoo.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1379278750; bh=Go7B0mxV+/GUwnlelSjGigEfZXTzbT7hp2zEDEcbCb4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=5ryfjElr0ekQtbBSmJqcME9+DJbHLA9bOXyCHOPQbec/0lIWUn7FuKLikHNErP/iHdb3xaYJpD+H6JGOzJHBGtYQxxcVXBrlVErfrZpbXSKyQWB+PKa30fbWHxvvCv9B33Az38d60cAn5mJnfn3+qI955YgEv+YobAMP865xVZg= Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@vger.kernel.org hi, when i use these commands to redirect the output from tun0 to ifb0: dev=tun0; indev=ifb0; tc qdisc add dev $dev handle ffff: ingress tc filter add dev $dev parent ffff: protocol ip prio 1 u32 match u32 0 0 action \ mirred egress redirect dev $indev i get this tcpdump output: tcpdump -i ifb0 tcpdump: WARNING: ifb0: no IPv4 address assigned listening on ifb0, link-type EN10MB (Ethernet), capture size 65535 bytes 22:44:38.333033 00:00:40:01:43:58 (oui Unknown) > 45:00:00:54:23:22 (oui Unknown), ethertype Unknown (0x0a08), length 84: 0x0000: 000a 0a08 0016 0000 2e57 39db 0009 361c .........W9...6. 0x0010: 3652 3c53 0400 0809 0a0b 0c0d 0e0f 1011 6R 45:00:00:54:23:23 (oui Unknown), ethertype Unknown (0x0a08), length 84: 0x0000: 000a 0a08 0016 0000 3e52 39db 000a 371c ........>R9...7. 0x0010: 3652 2b57 0400 0809 0a0b 0c0d 0e0f 1011 6R+W............ 0x0020: 1213 1415 1617 1819 1a1b 1c1d 1e1f 2021 ...............! 0x0030: 2223 2425 2627 2829 2a2b 2c2d 2e2f 3031 "#$%&'()*+,-./01 0x0040: 3233 3435 3637 234567 why dont i get the icmp packets that went into the openvpn tunnel? and what do i get instead? the target is to manage all incoming traffic, but if use eth0 (the real physical device) as root all that goes over the vpn connection is already encrypted and encapsulated by openvpn. so its all one big blob with dst port 1194. is there a better way to manage the traffic that goes to the internet and the one that goes trough a vpn at one bottleneck?