Port Forwarding Help

Discussion in 'Server Security' started by Kyle Lindeque, Apr 15, 2012.

  1. Kyle Lindeque

    Kyle Lindeque New Member

    Joined:
    Apr 15, 2012
    Messages:
    2
    Likes Received:
    0
    Hi,

    I recently setup a gaming server.
    However I have now returned to university, and am unable to connect to it because of the universities firewall in my residence hall. I am wanting to setup port forwarding, so that the following:
    a) people connecting on the default port (25565) are unaffected
    b) using an alternate port, 8080, such that I will be able to connect and have the server internally router it to 25565.

    Is this possible? If so, can someone advise me as to what NAT rules I should setup in IPTables.

    Thanks.

     
  2. Rob

    Rob Administrator Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    607
    Likes Received:
    271
    Ok, so the university's firewall won't let you connect out to 25565 on the remote server?

    And, the game server is the remote iptables firewall that you want to modify...

    Code:
    iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 25565
    
    Give that a shot :)
     
  3. Kyle Lindeque

    Kyle Lindeque New Member

    Joined:
    Apr 15, 2012
    Messages:
    2
    Likes Received:
    0
    AHHHH Thank you for helping me defeat "The System". I can connect again! :eek:
     
  4. Rob

    Rob Administrator Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    607
    Likes Received:
    271
    Great to hear! :)
     
  5. ashishagarwal

    ashishagarwal New Member

    Joined:
    Nov 14, 2012
    Messages:
    1
    Likes Received:
    2
    Ip table is the great way to stop any tampering
     

Share This Page