Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Having Trouble with Enable Hairpin Nat

$
0
0

Hello all,

I have been having trouble forwarding my port 80 to my Snyology NAS webserver.  I finally got it to work and can successfully navigate to the external IP from outside my network.  However, when I attempt to do so inside it simply takes me to the Edgemax router login page.  

I have the Enable Hairpin Nat checked but not sure what else I can do.

 

Any suggestions?


Here is my config:

firewall {
    all-ping enable
    broadcast-ping disable
    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
            destination {
                port 80
            }
            log enable
            protocol tcp
        }
        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 dhcp
        description Internet
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
        traffic-policy {
            out UpStream
        }
    }
    ethernet eth1 {
        address 192.168.1.1/24
        description LAN
        duplex auto
        redirect ifb1
        speed auto
        traffic-policy {
            out DownStream
        }
    }
    ethernet eth2 {
        address 192.168.2.1/24
        description WLAN
        duplex auto
        speed auto
    }
    input ifb1 {
        traffic-policy {
            out UpStream
        }
    }
    loopback lo {
    }
}
port-forward {
    auto-firewall enable
    hairpin-nat enable
    lan-interface eth1
    lan-interface eth2
    wan-interface eth0
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN1 {
            authoritative enable
            subnet 192.168.1.0/24 {
                default-router 192.168.1.1
                dns-server 192.168.1.1
                lease 86400
                start 192.168.1.38 {
                    stop 192.168.1.243
                }
            }
        }
        shared-network-name LAN2 {
            authoritative enable
            subnet 192.168.2.0/24 {
                default-router 192.168.2.1
                dns-server 192.168.2.1
                lease 86400
                start 192.168.2.38 {
                    stop 192.168.2.243
                }
            }
        }
    }
    dns {
        forwarding {
            cache-size 150
            listen-on eth1
            listen-on eth2
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 1 {
            description "Port 80"
            destination {
                group {
                }
                port 80
            }
            inbound-interface eth0
            inside-address {
                address 192.168.1.128
                port 80
            }
            log disable
            protocol tcp
            source {
            }
            type destination
        }
        rule 5010 {
            description "masquerade for WAN"
            outbound-interface eth0
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    upnp {
        listen-on eth1 {
            outbound-interface eth0
        }
    }
}
system {
    host-name ubnt
    login {
        user teamjb {
            authentication {
                encrypted-password ****************
                plaintext-password ****************
            }
            level admin
        }
    }
    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
    traffic-analysis {
        dpi enable
        export enable
    }
}
traffic-control {
}
traffic-policy {
    shaper DownStream {
        bandwidth 30000kbit
        class 50 {
            bandwidth 90%
            ceiling 100%
            description PS4
            match ADDR {
                ip {
                    destination {
                        address 192.168.1.127/32
                    }
                }
            }
            priority 7
        }
        default {
            bandwidth 90%
            ceiling 100%
        }
        description "DownStream QoS"
    }
    shaper UpStream {
        bandwidth 5000kbit
        class 50 {
            bandwidth 95%
            ceiling 100%
            description PS4
            match ADDR {
                ip {
                    destination {
                    }
                    source {
                        address 192.168.1.127/32
                    }
                }
            }
            priority 7
        }
        class 100 {
            bandwidth 40%
            ceiling 100%
            description "Plex Remote"
            match ip {
                ip {
                    destination {
                        port 32400
                    }
                }
            }
            priority 5
        }
        default {
            bandwidth 95%
            burst 15k
            ceiling 100%
            queue-type fair-queue
        }
        description "Upstream QoS Policy"
    }
}

Thanks for any help you can offer!


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>