Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
telnet 192.168.2.52 5552Trying 192.168.2.52...Connected to 192.168.2.52.Escape character is '^]'.Connection closed by foreign host.root@sosh2:/home/ksosh2# telnet 192.168.2.51 5551Trying 192.168.2.51...Connected to 192.168.2.51.Escape character is '^]'.Connection closed by foreign host.
sudo iptables-save# Generated by iptables-save v1.4.12 on Tue Sep 29 13:21:38 2015*mangle:PREROUTING ACCEPT [7296136:8999219895]:INPUT ACCEPT [4911623:7373303796]:FORWARD ACCEPT [2382918:1625749595]:OUTPUT ACCEPT [3332484:2979504843]:POSTROUTING ACCEPT [5715402:4605254438]-A FORWARD -o ppp0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1400:65495 -j TCPMSS --clamp-mss-to-pmtuCOMMIT# Completed on Tue Sep 29 13:21:38 2015# Generated by iptables-save v1.4.12 on Tue Sep 29 13:21:38 2015*nat:PREROUTING ACCEPT [71497:4779361]:INPUT ACCEPT [35931:2564748]:OUTPUT ACCEPT [62394:3879499]:POSTROUTING ACCEPT [62401:3881173]-A PREROUTING -i ppp0 -p tcp -m tcp --dport 5551 -j DNAT --to-destination 192.168.2.51-A PREROUTING -i ppp0 -p tcp -m tcp --dport 5552 -j DNAT --to-destination 192.168.2.52-A PREROUTING ! -d 192.168.2.0/24 -i em2 -p tcp -m multiport --dports 80,8080 -j DNAT --to-destination 192.168.2.1:8081-A POSTROUTING -s 192.168.2.0/24 -o ppp0 -j MASQUERADE-A POSTROUTING -d 192.168.2.51/32 -p tcp -m tcp --dport 5551 -j SNAT --to-source 192.168.2.1-A POSTROUTING -d 192.168.2.52/32 -p tcp -m tcp --dport 5552 -j SNAT --to-source 192.168.2.1COMMIT# Completed on Tue Sep 29 13:21:38 2015# Generated by iptables-save v1.4.12 on Tue Sep 29 13:21:38 2015*filter:INPUT ACCEPT [4164752:5347207044]:FORWARD ACCEPT [221:14072]:OUTPUT ACCEPT [3332665:2979522324]-A INPUT -i lo -j ACCEPT-A FORWARD -i em2 -o ppp0 -j ACCEPT-A FORWARD -i ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPTCOMMIT# Completed on Tue Sep 29 13:21:38 2015
Страница сгенерирована за 0.06 секунд. Запросов: 25.