Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco
0 Пользователей и 1 Гость просматривают эту тему.
sudo iptables -nvL -t mangle
sudo iptables -t nat -A POSTROUTING -m mark --mark 1 -j MASQUERADE
:/etc/network# iptables -nvL -t mangleChain PREROUTING (policy ACCEPT 20094 packets, 1576K bytes) pkts bytes target prot opt in out source destination Chain INPUT (policy ACCEPT 13002 packets, 1005K bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 2809 packets, 5567K bytes) pkts bytes target prot opt in out source destination 6 360 MARK tcp -- * * 0.0.0.0/0 109.х.х.х.х tcp dpt:4111 MARK xset 0x1/0xffffffff 0 0 MARK udp -- * * 0.0.0.0/0 109.х.х.х.х udp dpt:4111 MARK xset 0x1/0xffffffffChain POSTROUTING (policy ACCEPT 2887 packets, 5577K bytes) pkts bytes target prot opt in out source destination
sudo ip route flush cache
route add -host x.x.x.x gw 10.20.0.1
Страница сгенерирована за 0.033 секунд. Запросов: 23.