Jump to content

Question

Posted

здравствуйте, мне нужно включить SNAT из приватной сети в сторону VPN, такая задача.

Quote

interface Bridge0
    rename Home
     ip address 192.168.1.1 255.255.255.0
     security-level private

interface PPTP1
    security-level private

ip static Home GigabitEthernet1
ip static Home PPTP1

но на другой стороне PPTP все равно приходят пакеты с адресами 192.168.1.X, как принудить кинетик делать SNAT?

4 answers to this question

Recommended Posts

  • 0
Posted
3 minutes ago, Leshiyart said:

interface PPTP1 security-level public возможно

да, помогло. но это у меня внутренний интерфейс.. на другой стороне тоже моя система. почему нельзя в таких случаях использовать SNAT?

 

  • 0
Posted
53 минуты назад, bzzztomas77 сказал:

почему нельзя в таких случаях использовать SNAT?

мануал так гласит что snat включается когда из приват в паблик идет, если из паблик в приват то dnat
такова реализация кинов, в ентвар можете творить что угодно) меня лично всегда в ступор вводят подобного рода действия со static, я за привычные и понятные snat dnat

  • 0
Posted

да, я понял, что из приватного в приватный не будет nat включаться?

и, вообщем, да, после 20+ лет в линуксе вот эти ip static ... путают, так скажем. особенно когда их логика меняет от свойств интерфейса.

  • Upvote 1

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.