mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-25 10:57:06 +00:00
9 lines
232 B
Bash
9 lines
232 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
local_if=ens3f0
|
||
|
container_ip=172.17.0.2
|
||
|
|
||
|
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||
|
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||
|
|