Jump to content

Question

Posted

Извините за каламбур в названии топика, не знаю как правильно сформулировать)

В общем нужно чтобы все соединения из интерфейса home к 92.55.185.175, перенаправлялись на 192.168.1.39. Как это можно реализовать?

6 answers to this question

Recommended Posts

  • 0
Posted

А через Безопасность -> Трансляция сетевых адресов (NAT) -> Добавить правило, пробовали? Плюс 192.168.1.39 нужно зарегистрировать в Домашняя сеть -> Устройства -> Добавить устройство

  • 0
Posted

какой из вариантов правильный?

1. iptables -t nat -A PREROUTING -s 192.168.2.99 -d 92.55.185.175 -j NETMAP --to 192.168.2.66

2. iptables -t nat -A PREROUTING -d 92.55.185.175 -j DNAT --to-destination 192.168.2.66

iptables -t nat -A POSTROUTING -s 92.55.185.175 -j SNAT --to-source 192.168.2.66

  • 0
Posted

в общем так сработало:

iptables -t nat -A PREROUTING -d 80.78.250.103 -p tcp --dport 80 -j DNAT --to-destination 192.168.2.1:82

а как кроме перезагрузки роутера применить эти правила?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.