2021年6月3日 星期四

iptables redirect to localhost

iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to 127.0.0.1:8080
若要用 iptables 把 traffic 導到 localhost,需要比較新的 Kernel >= 3.6 才可以做到
需要設此參數為 1
sysctl -w net.ipv4.conf.all.route_localnet=1


沒有留言:

RouetOS 7.25 set minimal supported WinBox version to 4.3

2026-10-23 釋出的 RouterOS 7.25 強制使用 WinBox 4.3 以上的版本 使用舊版 WinBox 3.43 會出現 ERROR: router requires newer winbox, please upgrade RouterOS 7.24.5 ...