Hello I just purchased a EdgeMax Edgerouter X.
I have port forwarding for RDP working but I cannot for the life of me figure out how to only allow access from a Public IP Block 68.188.x.x/28. This is the same IP Block that the Wan Interface of this EdgeRouter IP is in.
I have never used this interface before so sorry for my limited knowledge. Thank you for any help you can provide? I have the config below.
eth0-WAN IP 68.188.x.x
ethl-Lan IP 192.168.40.1
version 1.9.1
admin@ubnt:~$ show configuration
firewall {
all-ping enable
broadcast-ping disable
group {
}
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action accept
description RDP
destination {
group {
}
port 3389
}
log disable
protocol tcp
source {
group {
}
}
}
rule 30 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
name WAN_LOCAL {
default-action drop
description "WAN to router"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 30 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
ethernet eth0 {
address 68.188.29.77/28
description Internet
duplex auto
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
speed auto
}
ethernet eth1 {
description Local
duplex auto
speed auto
}
ethernet eth2 {
description Local
duplex auto
speed auto
}
ethernet eth3 {
description Local
duplex auto
speed auto
}
ethernet eth4 {
description Local
duplex auto
speed auto
}
loopback lo {
}
switch switch0 {
address 192.168.40.1/24
description Local
switch-port {
interface eth1 {
}
interface eth2 {
}
interface eth3 {
}
interface eth4 {
}
}
}
}
service {
dns {
forwarding {
cache-size 150
listen-on LISTENONPORT
listen-on switch0
}
}
gui {
https-port 443
}
nat {
rule 1 {
description RDP
destination {
group {
}
port 3389
}
inbound-interface eth0
inside-address {
address 192.168.40.222
port 3389
}
log disable
protocol tcp
source {
}
type destination
}
rule 5010 {
description "masquerade for WAN"
outbound-interface eth0
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
}
system {
gateway-address 68.188.29.65
host-name ubnt
login {
user admin {
authentication {
encrypted-password ****************
}
level admin
}
}
name-server 8.8.8.8
ntp {
server 0.ubnt.pool.ntp.org {
}
server 1.ubnt.pool.ntp.org {
}
server 2.ubnt.pool.ntp.org {
}
server 3.ubnt.pool.ntp.org {
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC