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

EdgeRouter X port forwarding not working

$
0
0

Hi,

 

I just moved to an ER-X with a Unifi UAP AC Lite to replace my older TP-Link router that I flashed with DD-WRT. The TP Link.

 

I have a server (FreeNAS) running Plex Media Server in a jail (192.168.1.2:32400).

 

I previously configured the TP-Link and got Port Fowarding working with no issues, so that I could access my server from outside of my local network.

 

After I got the ER-X and Unifi up and running, everything was fine inside the network, but I wasn't broadcasting to the outside world. No problem - I'll just use the Port Forwarding wizard - it seems pretty straightforward. It didn't work. Couldn't acces the server from outside, and when I used CanYouSeeMe.org, it wasn't showing that my requested port was open (it does show that the port is open when I go there using my TP-Link).

 

I nuked out the Port Forwarding wizard setting, and configured using Firewall Policies and NAT using the instructions from this video.

 

I think I followed everything from the video and a few posts that I ran across on this board, but I'm still unable to get that port (32400) open. Could someone please check out my config and let me know what I'm missing?

 

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                                                         
            description "Plex Traffic"                                            
            destination {                                                         
                address 192.168.1.2                                               
                port 32400                                                        
            }                                                                     
            log disable                                                           
            protocol tcp_udp                                                      
            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 20 {                                                                 
            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                                                                
    }                                                                             
    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                                                               
        poe {                                                                     
            output pthru                                                          
        }                                                                         
        speed auto                                                                
    }                                                                             
    loopback lo {                                                                 
    }                                                                             
    switch switch0 {                                                              
        address 192.168.1.1/24                                                    
        description Local                                                         
        mtu 1500                                                                  
        switch-port {                                                             
            interface eth1 {                                                      
            }                                                                     
            interface eth2 {                                                      
            }                                                                     
            interface eth3 {                                                      
            }                                                                     
            interface eth4 {                                                      
            }                                                                     
            vlan-aware disable                                                    
        }                                                                         
    }                                                                             
}                                                                                 
service {                                                                         
    dhcp-server {                                                                 
        disabled false                                                            
        hostfile-update disable                                                   
        shared-network-name LAN {                                                 
            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.150 {                                             
                    stop 192.168.1.255                                            
                }                                                                 
                static-mapping FreeNAS {                                          
                    ip-address 192.168.1.140                                      
                    mac-address 18:a9:05:bf:8f:dc                                 
                }                                                                 
            }                                                                     
        }                                                                         
        use-dnsmasq disable                                                       
    }                                                                             
    dns {                                                                         
        forwarding {                                                              
            cache-size 150                                                        
            listen-on switch0                                                     
        }                                                                         
    }                                                                             
    gui {                                                                         
        http-port 80                                                              
        https-port 443                                                            
        older-ciphers enable                                                      
    }                                                                             
    nat {                                                                         
        rule 1 {                                                                  
            description "Plex Traffic"                                            
            destination {                                                         
                group {                                                           
                    address-group ADDRv4_eth0                                     
                }                                                                 
                port 32400                                                        
            }                                                                     
            inbound-interface eth0                                                
            inside-address {                                                      
                address 192.168.1.2                                               
                port 32400                                                        
            }                                                                     
            log disable                                                           
            protocol tcp_udp                                                      
            source {                                                              
            }                                                                     
            type destination                                                      
        }                                                                         
        rule 5010 {                                                               
            description "masquerade for WAN"                                      
            outbound-interface eth0                                               
            type masquerade                                                       
        }                                                                         
    }                                                                             
    ssh {                                                                         
        port 22                                                                   
        protocol-version v2                                                       

Thanks!


Viewing all articles
Browse latest Browse all 20028

Trending Articles



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