I now get Zyxel reluctance to do NAT ports to port but I now know how to fix

Options
PeterUK
PeterUK Posts: 4,844
250 Answers 2500 Comments Friend Collector Ninth Anniversary
image  Guru Member
edited November 11 in USG FLEX H Series

So I ported this 6 years ago

So on paper the idea is simple? Well it would be if ISP manly CGNAT did not mess with clients source port and then you start thinking but whats the source port got to do with NAT a destination port? Let me explain so bad CGNAT designs do the following let forget NAT and a server with port 80 and 81 a bad CGNAT would do this:

10.0.0.2:60000 > 2.2.2.2:80 CGNAT 80.132.0.2:55555 > 2.2.2.2:80

10.0.0.2:49000 > 2.2.2.2:81 CGNAT 80.132.0.2:55555 > 2.2.2.2:81

as you can see the bad CGNAT think why randomise the source port to the another session to the same destination but other port. And yes that works but then comes the issue now lets say you want the USG to have port 80 and 81 to NAT 80 where the server has no port 81 open...now the trouble happens. Now has to do

10.0.0.2:60000 > 2.2.2.2:80 CGNAT 80.132.0.2:55555 > 2.2.2.2:80 USG NAT 80.132.0.2:55555 > 2.2.2.2:80

10.0.0.2:49000 > 2.2.2.2:81 CGNAT 80.132.0.2:55555 > 2.2.2.2:81 USG NAT 80.132.0.2:55555 > 2.2.2.2:80

and that can't work due to the first session would block the second session but had bad CGNAT did a good source port randomise like this this

10.0.0.2:60000 > 2.2.2.2:80 CGNAT 80.132.0.2:55555 > 2.2.2.2:80 USG NAT 80.132.0.2:55555 > 2.2.2.2:80

10.0.0.2:49000 > 2.2.2.2:81 CGNAT 80.132.0.2:44444 > 2.2.2.2:81 USG NAT 80.132.0.2:44444 > 2.2.2.2:80

it would work so how do we fix this on the USG side for a bad CGNAT? By randomise the source port when doing NAT so it does

10.0.0.2:60000 > 2.2.2.2:80 CGNAT 80.132.0.2:55555 > 2.2.2.2:80 USG NAT 80.132.0.2:55555 > 2.2.2.2:80

10.0.0.2:49000 > 2.2.2.2:81 CGNAT 80.132.0.2:55555 > 2.2.2.2:81 USG NAT 80.132.0.2:44444 > 2.2.2.2:80

I really do what this option to do NAT ports to port and randomise the source port as its doing NAT to fix conflicts like this.

All Replies

  • Zyxel_Judy
    Zyxel_Judy Posts: 2,889
    Zyxel Certified Network Engineer Level 2 - Nebula Zyxel Certified Network Engineer Level 2 - Switch Zyxel Certified Network Engineer Level 2 - Security Zyxel Certified Network Engineer Level 1 - Nebula
    image  Zyxel Employee
    Options

    Hi @PeterUK,

    We will add this to our feature roadmap and evaluate it.

    Please follow our News and Release page to find out if the feature is implemented.

    Zyxel_Judy