Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

Port Forwarding Help

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

  1. 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.

  2. Rob

    Rob Guest

    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...

    iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 25565
    Give that a shot :)
  3. AHHHH Thank you for helping me defeat "The System". I can connect again! :eek:
  4. Rob

    Rob Guest

    Great to hear! :)
  5. Ip table is the great way to stop any tampering

Share This Page