Find the answer to your Linux question:
Results 1 to 2 of 2
I have a server set up which gets my wireless signal and puts that out onto the LAN. I have that working sucessfully, however I need to open some ports ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User yourname3232's Avatar
    Join Date
    Aug 2005
    Location
    Pacific Northwest, USA
    Posts
    262

    Forwarding Ports on NAT (solved)


    I have a server set up which gets my wireless signal and puts that out onto the LAN. I have that working sucessfully, however I need to open some ports on one of the computers on the LAN to play a game. How would I open the ports to the cmoputer?


    Setup:
    Wireless Router ----(wireless)---- NAT server--(wire)--computer that needs ports open
    Registered GNU/Linux User #399198
    'Experience is something you don't get until just after you need it.' -Steven Wright

  2. #2
    Linux User yourname3232's Avatar
    Join Date
    Aug 2005
    Location
    Pacific Northwest, USA
    Posts
    262
    Hey, atfer 1.5 hours googleing I solved it, for anyone else with this problem all I had to do was the following commands for every port I needed:

    iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 6118 -j DNAT --to-destination 192.168.2.1:6118

    and

    iptables -A FORWARD -s 192.168.2.1 -p tcp --dport 6118 -j ACCEPT
    Registered GNU/Linux User #399198
    'Experience is something you don't get until just after you need it.' -Steven Wright

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •