Announcement

Collapse
No announcement yet.

Need Networking Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Dammit I had a good reply and hit back space

    Ok when you NAT the the router looks at the src IP and port and the dst IP and port and builds two table entry's that get popped to the top of the NAT table which is read top to bottom. So client A connects an you get entries like this


    any udp packet on inside interface from host (client A's IP/port)192.168.1.1:666 going to (serverip/port) 66.245.252.215:2666 rewrite packet from (routers outside IP and some random port) 21.15.66.77:88

    Table entry 1 above handles translation from client through NAT to server

    and 2nd entry

    any udp packet on outside interface from host (serverip/port) 66.245.252.215:2666 and going to 21.15.66.77:88 (routers outside IP and random port) rewrite packet with src ip from routers INside IP and send to 192.168.1.1

    This handles translation from server to client.

    So when client B connects we get the outbound rule like this

    any udp packet on inside interface from host (client B's IP/port)192.168.1.2:666 going to (serverip/port) 66.245.252.215:2666 rewrite packet from (routers outside IP and some random port) 21.15.66.77:88

    and another rule like this for the inbound traffic

    any udp packet on outside interface from host (serverip/port) 66.245.252.215:2666 and going to 21.15.66.77:88 (routers outside IP and random port) rewrite packet with src ip from routers INside IP and send to 192.168.1.2

    Since the rules go ontop of the stack when created and when a packet comes in the router starts at the top of the list looking for a rule match both inbound traffic streams match the new rule that is first ontop of the stack both inbound connections are translated and sent to Client B disconnection A.


    So somewhere either the router is not selecting a sufficiently randomized src port on the outbound translation or it's getting confused and not matching to little or too much of a port number like say one port number is 666 and one is 6667 they both match if the matching algorithm is flawed.

    One other point your correct some games do not handle NAT well. Thats mostly a thing of the past cause NAT is everywhere.... For example there was some MS mechwarrior game my bro played and it didn't work with nat.

    Comment

    Cain's Lair Forums Statistics

    Collapse

    Topics: 26,187   Posts: 269,850   Members: 6,183   Active Members: 7
    Welcome to our newest member, Fermin13Q.

    Today's Birthdays

    Collapse

    Top Active Users

    Collapse

    There are no top active users.

    More Posts

    Collapse

    • Reply to Hi guys!
      by Evil_T0NY {CLR}
      I've been Alpha and will be Beta testing the Delta Force game. It's been really getting good reviews! Definitely a good Battlefield feel to it like the...
      14 Nov 2024, 08:50 PM
    • Reply to Hope your all OK over there
      by Apache Warrior
      We had 17 inches of rain from the storm on November 7, 2024.
      Apache
      11 Nov 2024, 07:55 AM
    • Reply to Hope your all OK over there
      by Sirex
      Aye, I'm inclined to agree with that lmao
      Gone are the days of warm summers and snow filled winters here, nothing but rain and wind for 8mths of...
      10 Nov 2024, 08:53 PM
    • Reply to Hope your all OK over there
      by Apache Warrior
      Now we have had a lot of flooding in this area and there are still a lot of houses that have not been repaired. Must be the apocalypse.
      ...
      8 Nov 2024, 09:23 AM
    Working...
    X