Jump to content
Калькуляторы

зеракалировать конкретный трафик.

Добрый день. Подскажите наименее затратный способ на линуксе замиррорить исходящий трафик с eth1 на eth2. причем нужна еще и фильтрация типа миррорить все кроме 192.168.44.0/24

 

ЗЫ не в том разделе кажется тему создал.

Edited by swelf

Share this post


Link to post
Share on other sites

Добрый день. Подскажите наименее затратный способ на линуксе замиррорить исходящий трафик с eth1 на eth2. причем нужна еще и фильтрация типа миррорить все кроме 192.168.44.0/24

 

ЗЫ не в том разделе кажется тему создал.

Думаю, что выдержка из man'a по iptables может помочь.

 

TEE

The TEE target will clone a packet and redirect this clone to another machine on the local network segment. In other words, the nexthop must be the target, or

you will have to configure the nexthop to forward it further if so desired.

 

--gateway ipaddr

Send the cloned packet to the host reachable at the given IP address. Use of 0.0.0.0 (for IPv4 packets) or :: (IPv6) is invalid.

 

To forward all incoming traffic on eth0 to an Network Layer logging box:

 

-t mangle -A PREROUTING -i eth0 -j TEE --gateway 2001:db8::1

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.