Hello,
I installed Vyos today to learn the system and play around with it, but I can’t seem to get port forwarding working. I’m trying to forward 32400 to an internal IP of 192.168.1.200, but it’s not working after adding bother firewall forwarding rules and NAT destination rules. This is a new installation of 1.4. What am I doing wrong?
Thanks!
ILLY
nat {
destination {
rule 10 {
description "PLEX Port Forward"
destination {
port 32400
}
inbound-interface {
name eth0
}
protocol tcp
translation {
address 192.168.1.200
}
}
}
source {
rule 100 {
outbound-interface {
name eth0
}
source {
address 192.168.1.0/24
}
translation {
address masquerade
}
}
}
}
firewall {
global-options {
state-policy {
established {
action accept
}
invalid {
action drop
}
related {
action accept
}
}
}
group {
interface-group LAN {
interface eth8
}
interface-group WAN {
interface eth0
}
network-group NET-INSIDE-v4 {
network 192.168.1.0/24
}
}
ipv4 {
forward {
filter {
rule 10 {
action accept
connection-status {
nat destination
}
state new
}
rule 100 {
action jump
destination {
group {
network-group NET-INSIDE-v4
}
}
inbound-interface {
group WAN
}
jump-target OUTSIDE-IN
}
}
}
input {
filter {
default-action drop
rule 20 {
action jump
destination {
port 22
}
jump-target VyOS_MANAGEMENT
protocol tcp
}
rule 30 {
action accept
icmp {
type-name echo-request
}
protocol icmp
state new
}
rule 40 {
action accept
destination {
port 53
}
protocol tcp_udp
source {
group {
network-group NET-INSIDE-v4
}
}
}
rule 50 {
action accept
source {
address 127.0.0.0/8
}
}
}
}
name OUTSIDE-IN {
default-action drop
}
name VyOS_MANAGEMENT {
default-action return
rule 15 {
action accept
inbound-interface {
group LAN
}
}
rule 20 {
action drop
inbound-interface {
group WAN
}
recent {
count 4
time minute
}
state new
}
rule 21 {
action accept
inbound-interface {
group WAN
}
state new
}
}
}
}