Changeset c2b68db in freewrt


Ignore:
Timestamp:
Oct 24, 2006, 9:31:14 AM (19 years ago)
Author:
Dirk Nehring <dnehring@…>
Children:
256de2e
Parents:
ea5d44e4
Message:

add prerouting_rule for NAT

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1003 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/iptables/files/firewall.conf

    rea5d44e4 rc2b68db  
    44WAN=ppp0
    55LAN=br0
    6 WLAN= # optional
     6WLAN=
    77
    88######################################################################
     
    1313iptables -N input_rule
    1414iptables -N forwarding_rule
     15iptables -t nat -N prerouting_rule
     16iptables -t nat -N postrouting_rule
    1517
    1618### Default policy
     
    5557# custom rules
    5658iptables -A FORWARD -j forwarding_rule
     59iptables -t nat -A PREROUTING -j prerouting_rule
     60iptables -t nat -A POSTROUTING -j postrouting_rule
    5761
    5862# allow LAN
     
    101105###
    102106
     107#iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 3389 -j DNAT --to 192.168.1.10
    103108#iptables -A forwarding_rule -i $WAN -p tcp --dport 3389 -d 192.168.1.10 -j ACCEPT
Note: See TracChangeset for help on using the changeset viewer.