This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/config-parts/nat.sh

16 lines
600 B
Bash
Raw Normal View History

2023-03-29 13:30:45 -05:00
#!/bin/vbash
# Forward Plex to Sting
set nat destination rule 110 description 'PLEX'
set nat destination rule 110 destination port '32400'
2024-01-04 09:38:19 -06:00
set nat destination rule 110 inbound-interface name 'eth5'
2023-03-29 13:30:45 -05:00
set nat destination rule 110 protocol 'tcp'
set nat destination rule 110 translation address '10.1.1.12'
set nat destination rule 110 translation port '32400'
# LAN -> WAN masquerade
set nat source rule 100 description 'LAN -> WAN'
set nat source rule 100 destination address '0.0.0.0/0'
set nat source rule 100 outbound-interface name 'eth5'
2023-03-29 13:30:45 -05:00
set nat source rule 100 translation address 'masquerade'