Jump to content

WireGuard VPN мост на Keenetic в DMZ зону


Recommended Posts

Пытаюсь пробросить несколько портов (TCP 21 и 80) с VPS сервера на два разных сервера в DMZ зоне (VLAN 4) за роутером Keenetic

1) создал WireGuard VPN сервер на VPS сервере (Address = 172.16.82.1/24)

[Interface]
PrivateKey = 
Address = 172.16.82.1/24
ListenPort = 
MTU = 

# DMZ
[Peer]
PublicKey = 
PresharedKey =
AllowedIPs = 172.16.82.2/24
 

2) создал WireGuard VPN клиент на Keenetic (Address = 172.16.82.2/24)

interface Wireguard1
    description WG
    security-level public
    ip address 172.16.82.2 255.255.255.0
    ip mtu xxxx
    ip access-group _WEBADMIN_Wireguard1 in
    ip tcp adjust-mss pmtu
    wireguard peer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        endpoint xxx.xx.xx.xx:xxxxx
        keepalive-interval 30
        preshared-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        allow-ips 0.0.0.0 0.0.0.0
    !
    up
!

3) соединил, работает , пакеты проходят

Вопрос как вывести interface Wireguard1 в виртуальную сеть VLAN 4, соединить в режиме сетевого моста 

VPN.jpg

Edited by plusQ
Link to comment
Share on other sites

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
Reply to this topic...

×   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...