Krijg port-forwaring op EdgeRouter 4X niet werkend...

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • t013463
  • Registratie: Mei 2003
  • Laatst online: 15-09 22:25
Mijn vraag
Ik heb een EdgeRouter 4X en ik krijg port-forwarding niet werkend.
Nu ben ik ook nog in het buitenland en kan ik alleen via de CLI bij m'n EdgeRouter.

Dit is mijn portforward config:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
auto-firewall enable                                                                                                      
 hairpin-nat enable                                                                                                        
 lan-interface switch0.1                                                                                                   
 rule 1 {                                                                                                                  
     description Syno-DSM_https                                                                                            
     forward-to {                                                                                                          
         address 192.168.1.5                                                                                               
         port 5001                                                                                                         
     }                                                                                                                     
     original-port 5001                                                                                                    
     protocol tcp                                                                                                          
 }                                                                                                                         
 rule 2 {                                                                                                                  
     description Syno-DSM_http                                                                                             
     forward-to {                                                                                                          
         address 192.168.1.5                                                                                               
         port 5000                                                                                                         
     }                                                                                                                     
     original-port 5000                                                                                                    
     protocol tcp                                                                                                          
 }                                                                                                                         
 rule 3 {                                                                                                                  
     description Syno-Backup                                                                                               
     forward-to {                                                                                                          
         address 192.168.1.5                                                                                               
         port 6281                                                                                                         
     }                                                                                                                     
     original-port 6281                                                                                                    
     protocol tcp                                                                                                          
 }                                                                                                                         
 rule 4 {                                                                                                                  
     description Syno-Drive                                                                                                
     forward-to {                                                                                                          
         address 192.168.1.5                                                                                               
         port 6690                                                                                                         
     }           
  rule 5 {                                                                                                                  
     description bitwarden                                                                                                 
     forward-to {                                                                                                          
         address 192.168.1.5                                                                                               
         port 5554                                                                                                         
     }                                                                                                                     
     original-port 5554                                                                                                    
     protocol tcp                                                                                                          
 }                                                                                                                         
 rule 6 {                                                                                                                  
     description OPENVPN_TO_SYNO                                                                                           
     forward-to {                                                                                                          
         address 192.168.1.5                                                                                               
         port 1194                                                                                                           
     }                                                                                                                     
     original-port 1194                                                                                                    
     protocol udp                                                                                                          
 }                                                                                                                         
 wan-interface eth5


Mijn interface configuratie zit er zo uit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
ethernet eth0 {                                                                                                           
     description "LAN - To Managed Switch"                                                                                 
     duplex auto                                                                                                           
     poe {                                                                                                                 
         output off                                                                                                        
     }                                                                                                                     
     speed auto                                                                                                            
 }                                                                                                                         
 ethernet eth1 {                                                                                                           
     description "LAN - eth1 (empty)"                                                                                      
     disable                                                                                                               
     duplex auto                                                                                                           
     poe {                                                                                                                 
         output off                                                                                                        
     }                                                                                                                     
     speed auto                                                                                                            
 }                                                                                                                         
 ethernet eth2 {                                                                                                           
     description "LAN - eth2 (empty)"                                                                                      
     disable                                                                                                               
     duplex auto                                                                                                           
     poe {                                                                                                                 
         output off                                                                                                        
     }                                                                                                                     
     speed auto                                                                                                            
 }                                                                                                                         
 ethernet eth3 {                                                                                                           
     description "IPTV - Master Bedroom"                                                                                   
     duplex auto                                                                                                           
     poe {                                                                                                                 
         output off                                                                                                        
     }                                                                                                                     
     speed auto                        
 }
 ethernet eth4 {                                                                                                           
     description "IPTV - Living Room"                                                                                      
     duplex auto                                                                                                           
     poe {                                                                                                                 
         output off                                                                                                        
     }                                                                                                                     
     speed auto                                                                                                            
 }                                                                                                                         
 ethernet eth5 {                                                                                                           
     description "WAN - Fiber"                                                                                             
     duplex auto                                                                                                           
     speed auto                                                                                                            
 }                                                                                                                         
 loopback lo {                                                                                                             
 }                                                                                                                         
 switch switch0 {                                                                                                          
     description Switch                                                                                                    
     mtu 1500                                                                                                              
     switch-port {                                                                                                         
         interface eth0 {                                                                                                  
             vlan {                                                                                                        
                 pvid 1                                                                                                    
             }                                                                                                             
         }                                                                                                                 
         interface eth1 {                                                                                                  
             vlan {                                                                                                        
                 pvid 1                                                                                                    
             }                                                                                                             
         }                                                                                                                 
         interface eth2 {                                                                                                  
             vlan {                                                                                                        
                 pvid 1                                                                                                    
             }                                                                                                             
         }                                                                                                                 
         interface eth3 {                                                                                                  
             vlan {                                                                                                        
                 pvid 640                                                                                                  
             }                                                                                                             
         }                                                                                                                 
         interface eth4 {                                                                                                  
             vlan {                                                                                                        
                 pvid 640                                                                                                  
             }                                                                                                             
         }                                                                                                                 
         interface eth5 {                                                                                                  
             vlan {                                                                                                        
                 vid 640                                                                                                   
                 vid 300                                                                                                   
             }                                                                                                             
         }                                                                                                                 
         vlan-aware enable                                                                                                 
     }                                                                                                                     
     vif 1 {                                                                                                               
         address 192.168.1.1/24                                                                                            
         description "Switch - VLAN - Local"                                                                               
     }                                                                                                                     
     vif 300 {                                                                                                             
         address dhcp                                                                                                      
         description "Switch - VLAN - Internet"                                                                            
         firewall {                                                                                                        
             in {                                                                                                          
                 name WAN_IN                                                                                               
             }                                                                                                             
             local {                                                                                                       
                 name WAN_LOCAL                                                                                            
             }                                                                                                             
         }                                                                                                                 
         mtu 1500                                                                                                          
     }                                                                                                                     
     vif 640 {                                                                                                             
         description "Switch - VLAN - IPTV"                                                                                
         mtu 1500                                                                                                          
     }                                                                                                                     
 }


Heeft iemand een idee waarom ik niet vanaf buiten bij de bovenstaande port-forward poorten kan?

Beste antwoord (via t013463 op 04-05-2021 21:10)


  • ElCondor
  • Registratie: Juni 2001
  • Laatst online: 03-10 20:37

ElCondor

Geluk is Onmisbaar

Ik kan het helemaal mis hebben want ik heb geen EdgeRouter, maar je Lan wijst naar Switch0.1, is dat niet Eth1 op de Switch? Moet het niet Switch0.0 zijn om te verwijzen naar Eth0 waar jouw LAN kabel in zit.

Nogmaals, ik heb geen ervaring met de syntax van EdgeRouters, maar meestal zijn die dingen zero-based.

Hay 365 dias en un año y 366 occasiones para festejar (Boliviaans spreekwoord)

Alle reacties


Acties:
  • Beste antwoord
  • +1 Henk 'm!

  • ElCondor
  • Registratie: Juni 2001
  • Laatst online: 03-10 20:37

ElCondor

Geluk is Onmisbaar

Ik kan het helemaal mis hebben want ik heb geen EdgeRouter, maar je Lan wijst naar Switch0.1, is dat niet Eth1 op de Switch? Moet het niet Switch0.0 zijn om te verwijzen naar Eth0 waar jouw LAN kabel in zit.

Nogmaals, ik heb geen ervaring met de syntax van EdgeRouters, maar meestal zijn die dingen zero-based.

Hay 365 dias en un año y 366 occasiones para festejar (Boliviaans spreekwoord)


Acties:
  • +1 Henk 'm!

  • t013463
  • Registratie: Mei 2003
  • Laatst online: 15-09 22:25
ElCondor schreef op dinsdag 4 mei 2021 @ 19:57:
Ik kan het helemaal mis hebben want ik heb geen EdgeRouter, maar je Lan wijst naar Switch0.1, is dat niet Eth1 op de Switch? Moet het niet Switch0.0 zijn om te verwijzen naar Eth0 waar jouw LAN kabel in zit.

Nogmaals, ik heb geen ervaring met de syntax van EdgeRouters, maar meestal zijn die dingen zero-based.
Dit was inderdaad het probleem. Toen ik het volgende commando via de CLI gaf, werkte het weer!

code:
1
2
3
4
configure
set port-forward wan-internet switch0.300
commit
save