I now get Zyxel reluctance to do NAT ports to port but I now know how to fix
Guru Member
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
-
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
1
Categories
- All Categories
- 442 Beta Program
- 3.1K Nebula
- 245 Nebula Ideas
- 6.9K Security
- 813 USG FLEX H Series
- 393 Security Ideas
- Threat Watch!
- 1.8K Switch
- 88 Switch Ideas
- 1.5K Wireless
- 60 Wireless Ideas
- 7.3K Consumer Product
- 333 Service & License
- 543 News and Release
- 107 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 5.7K FAQ
- 34 Documents
- 89 About Community
- 125 Security Highlight
Zyxel Employee