Last active
April 3, 2025 18:58
Revisions
-
nextman revised this gist
Mar 6, 2016 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ Итак, cd /etc/vipnet/user/ iplir stop mcedit firewall.conf @@ -20,7 +19,6 @@ После чего стартуем обратно iplir start Само собой, у 172.16.0.20 координатор должен быть шлюзом по умолчанию, ну или статический маршрут для 5.6.7.8 прописать. -
nextman created this gist
Mar 6, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ Допустим, у координатора внешний IP 1.2.3.4, внутренний в сети 172.16.0.0/16, и нам нужно дать внешнему пользователю с адресом 5.6.7.8 доступ по RDP на машину 172.16.0.20 внутри сети. Для пущей загадочности, пусть заходит снаружи на порт 9876 вместо стандартного 3389. Итак, :::bash cd /etc/vipnet/user/ iplir stop mcedit firewall.conf В секции nat делаем собственно проброс, в секции forward разрешаем заходить конкретному ip. [nat] rule= num 21 proto tcp from anyip to 1.2.3.4:9876 change dst=172.16.0.20:3389 [forward] rule= num 117 proto tcp from 5.6.7.8 to 172.16.0.20:3389 pass После чего стартуем обратно :::bash iplir start Само собой, у 172.16.0.20 координатор должен быть шлюзом по умолчанию, ну или статический маршрут для 5.6.7.8 прописать.