xtable-addons在ubuntu 12.04上安装

湛钊
2023-12-01

xtable-addons在ubuntu 12.04上安装
1.安装好ubuntu12.04;
2.sudo apt-get install linux-source
3.tar -xjvf linux-source-3.2.0.tar.bz2
4.cd linux-source-3.2.0.tar.bz2
5.make oldconfig
6.make prepare;make;make modules
7.tar -xvf xtables-addons-1.43.tar.tar
8.apt-get install pkg-config
9.apt-get install iptables-dev
10../configure
11.make;make install
12.iptables -t mangle -A POSTROUTING -s 192.168.1.105 -j TEE --gateway 192.168.1.254 --oif eth0

 

iptables -t mangle -A PREROUTING -p udp --dport 9996 -j TEE --gateway <IP of HOST B>.
This command will clone all incoming udp-packets to port 9996 in kernelspace and copy them to HOST B, where we will rewrite the IP addresses. Confirm by typing

 类似资料: