Results 1 to 3 of 3

Thread: port forwarding disappears

  1. #1

    port forwarding disappears

    hi, i am new to linux and i don't understand why after a while my port forwarding settings disappear. i have in post-boot the following:
    //#BEGIN post-boot
    #!/bin/sh
    dropbear
    iptables -t nat -A POSTROUTING -p udp --sport 3202 -s 10.10.10.2 -d 192.168.0.0/22 -j SNAT --to 192.168.100.57:3202
    iptables -t nat -A POSTROUTING -p tcp --sport 3202 -s 10.10.10.2 -d 192.168.0.0/22 -j SNAT --to 192.168.100.57:3202
    iptables -t nat -A PREROUTING -p udp --dport 3202 -d 192.168.100.57 -j DNAT --to 10.10.10.2:3202
    iptables -t nat -A PREROUTING -p tcp --dport 3202 -d 192.168.100.57 -j DNAT --to 10.10.10.2:3202
    iptables -t nat -A POSTROUTING -p udp --sport 3204 -s 10.10.10.4 -d 192.168.0.0/22 -j SNAT --to 192.168.100.57:3204
    iptables -t nat -A POSTROUTING -p tcp --sport 3204 -s 10.10.10.4 -d 192.168.0.0/22 -j SNAT --to 192.168.100.57:3204
    iptables -t nat -A PREROUTING -p udp --dport 3204 -d 192.168.100.57 -j DNAT --to 10.10.10.4:3204
    iptables -t nat -A PREROUTING -p tcp --dport 3204 -d 192.168.100.57 -j DNAT --to 10.10.10.4:3204
    iptables -t nat -A POSTROUTING -p udp --sport 3205 -s 10.10.10.5 -d 192.168.0.0/22 -j SNAT --to 192.168.100.57:3205
    iptables -t nat -A POSTROUTING -p tcp --sport 3205 -s 10.10.10.5 -d 192.168.0.0/22 -j SNAT --to 192.168.100.57:3205
    iptables -t nat -A PREROUTING -p udp --dport 3205 -d 192.168.100.57 -j DNAT --to 10.10.10.5:3205
    iptables -t nat -A PREROUTING -p tcp --dport 3205 -d 192.168.100.57 -j DNAT --to 10.10.10.5:3205
    //#END post-boot

    the problem is that after an hour or 2 after the ports are not utilized when i look in wl500 web interface/status & log/port forwarding/ the settings are no more (and my dc client doesn't work) and i have to run the post-boot script again
    why is so???? why can't they just stay there

  2. #2
    Join Date
    Jan 2005
    Location
    Sandefjord, Norway
    Posts
    15

    Post-firewall is the script for firewall rules

    The firewall- and forwarding-rules are deleted whenever the DHCP-lease from you ISP is renewed/changed. When this happens, the /usr/local/sbin/post-firewall script will be run by the router.
    You'll have to create the script if it doesn't exist and make it executable with 'chmod +x /usr/local/sbin/post-firewall'
    Last edited by rogerrb; 13-08-2006 at 10:57.

  3. #3

    Useful IP Tables Guide

    If I have interpreted your question correctly, this guide on my wiki should help.

    IPTables guide.

    Jono
    Feel free to visit my WL-HDD/WL-500g wiki at http://www.sprayfly.com/wiki
    There are step by step guides on the installation and configuration of many optware packages as well as basic setup guides.

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2014, 13:16
  2. Problems with port forwarding
    By User007 in forum WL-500g Q&A
    Replies: 0
    Last Post: 04-08-2006, 16:53
  3. Need help with Wl500g and port forwarding
    By ikir in forum WL-500g Q&A
    Replies: 0
    Last Post: 28-01-2006, 13:58
  4. Port Forwarding of ben ik gehacked?
    By houthak in forum Dutch Discussion - Nederlands
    Replies: 2
    Last Post: 08-01-2006, 22:24
  5. Firmware v1.9.2.7 CR1 [Oleg]
    By Oleg in forum WL-500g Firmware Releases
    Replies: 53
    Last Post: 13-04-2005, 23:26

Posting Permissions

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