Jump to content
Not connected, Your IP: 3.128.190.102
Sign in to follow this  
WxjThf8HJV5ShAQ

VyOS config for port forwarding

Recommended Posts

I have successfully setup vyos to use openvpn to connect to AirVPN, however I am struggling with port forwarding incoming connections. Does anyone have any reference material or pointers on how to do this?

 

Thank you.

Share this post


Link to post

Looks like the syntax is from Cisco/Juniper firewalls, so for NAT you will need something from here:

http://wiki.vyos.net/wiki/User_Guide

 

set nat destination rule 10 description 'Port Forward: HTTP to 192.168.0.100'
set nat destination rule 10 destination port '80'
set nat destination rule 10 inbound-interface 'eth0'
set nat destination rule 10 protocol 'tcp'
set nat destination rule 10 translation address '192.168.0.100'

 

Change the IP addresses according to your LAN, the port you need, and the inbound-interface should be tunX or vtunX.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Thank you for your speedy reply. Yes, my destination NAT looks like this:

 

set nat destination rule 10 destination port '2255'
set nat destination rule 10 inbound-interface 'vtun99'
set nat destination rule 10 log 'enable'
set nat destination rule 10 protocol 'tcp'
set nat destination rule 10 translation address '192.168.235.100'
set nat destination rule 10 translation port '2255'

I think the traffic is coming through but may not be finding its way back.

Share this post


Link to post

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.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...