Jump to content

Question

Posted

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

1 answer to this question

Recommended Posts

  • 0
Posted

Если правильно понял суть вопроса, то диапазон адресов можно разбить в набор сетей и наделать маршрутов к ним.

$ ipcalc 192.168.29.0 - 192.168.32.31
deaggregate 192.168.29.0 - 192.168.32.31
192.168.29.0/24
192.168.30.0/23
192.168.32.0/27

То же самое онлайн - ip2cidr.com

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.