Results 1 to 5 of 5

Thread: post-firewall port triggering

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    post-firewall port triggering

    Question: How do you use port triggering in post-firewall?

    I know I'm answering my own question but I thought some people may be curious. I got the information by experimenting with iptables. After enabling port triggering, I noticed the following entry when I typed iptables -L -v -t nat:
    Code:
        0     0 autofw     tcp  --  br0    any     anywhere             anywhere           tcp dpt:6881 autofw tcp dpt:6881-6999 to:6881-6999
    Answer:
    iptables -t nat -A PREROUTING -i br0 -p INCOMING_PROTOCOL --dport TRIGGER_PORT_FROM(-TRIGGER_PORT_TO) -j autofw --related-proto TRIGGER_PROTOCOL --related-dport INCOMING_PORT_FROM(-INCOMING_PORT_TO) --related-to INCOMING_PORT_FROM(-INCOMING_PORT_TO)

    For example, to set up a trigger for BitTorrent, you'd use this:
    iptables -t nat -A PREROUTING -i br0 -p tcp --dport 6881 -j autofw --related-proto tcp --related-dport 6881-6999 --related-to 6881-6999
    Last edited by tomilius; 28-02-2005 at 00:54. Reason: Cosmetic

Similar Threads

  1. Start own script in post-boot or post-firewall
    By m-h-l in forum WL-500g Q&A
    Replies: 2
    Last Post: 30-09-2005, 19:03
  2. post-firewall script is not being executed
    By Fama in forum WL-500g Q&A
    Replies: 6
    Last Post: 09-08-2005, 09:14
  3. Wondershaper in Post-Firewall
    By britnet in forum WL-500g Q&A
    Replies: 3
    Last Post: 05-03-2005, 12:46
  4. When is post-firewall called?
    By barsju in forum WL-500g Q&A
    Replies: 1
    Last Post: 28-01-2005, 16:50
  5. Replies: 3
    Last Post: 24-12-2004, 19:13

Posting Permissions

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