Results 1 to 5 of 5

Thread: Port opening and forwarding

  1. #1

    Port opening and forwarding

    Dear All,

    I'm relatively new to Linux/Firewalls so I need your help to be able to access my web pages from outside.

    I've lighttpd running and listening in port 8082. What do I have to do to access the pages from the WAN?

    Related to the above, I have ssh running with access from the LAN working fine. What do I need to do to allow ssh from the WAN?

    Regards,

    PVarela

  2. #2
    Add this to rc.local:


    Code:
    # Opening port 8082
    iptables -I INPUT 7 -p tcp --dport 8082 -j ACCEPT
    Sollie.

  3. #3

    Thank you

    Sollie, thank you. I'll try that tonight.

    Do I need also to redirect port 8082 to router_local_ip:8082 in the web interface?

    Regards,

    PVarela

  4. #4
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Do I need also to redirect port 8082 to router_local_ip:8082 in the web interface?
    no

    iptables -I INPUT 7 -p tcp --dport 8082 -j ACCEPT
    This statement is questional (does he has 7 rules? By default I have only 6)

    I suggest either (as a result you rule will be the first one):

    PHP Code:
    iptables -I INPUT -p tcp --dport 8082 -j ACCEPT 
    or better (as a result you rule will be the last one):

    PHP Code:
    # set default policy
    iptables -P INPUT DROP

    # remove the last default rule
    iptables -D INPUT -j DROP

    # Allow access to lighthttpd server from WAN
    iptables -A INPUT -p tcp --dport 8082 -j ACCEPT 
    Anyway check the result with iptables -L

  5. #5

    Everything is working!

    Sollie, al37919,

    Thank you both. Everything is working perfectly now.

    Regards,

    PVarela

Similar Threads

  1. Hoe map ik een poort van de router naar de computer.
    By Dokus in forum Dutch Discussion - Nederlands
    Replies: 1
    Last Post: 05-03-2006, 18:16
  2. wl-500g deluxe + RemotelyAnywhere
    By lebowski in forum WL-500g Q&A
    Replies: 3
    Last Post: 27-07-2005, 09:42
  3. [uPnP] MSN Messenger functions not working fully
    By davidsanton in forum WL-500g Q&A
    Replies: 11
    Last Post: 26-04-2004, 06:31

Posting Permissions

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