Skip to content
Why is a raven like a writing desk?

Thoughts both confusing and enlightening.

Why is a raven like a writing desk?

Thoughts both confusing and enlightening.

port triggering with OpenWRT works!

elbeno, 17 March, 20078 January, 2008

I finally got around to compiling the ipt_TRIGGER kernel module with some logging in there, so I could tell where I was going wrong with my iptables commands.

The correct iptables commands are:

#iptables -t nat -A prerouting_wan -p tcp –dport 6881:6889 -j TRIGGER –trigger-type dnat
#iptables -A forwarding_wan -p tcp –dport 6881:6889 -j TRIGGER –trigger-type in
#iptables -t nat -A prerouting_rule -i br0 -p tcp –dport 6969 -j TRIGGER –trigger-type out –trigger-proto all –trigger-match 6881-6889 –trigger-relate 6881-6889

The first one handles NAT mangling for packets coming in off the WAN. The second one handles forwarding for the same packets. The last one is the one that creates a trigger when it spots an outbound BT packet.

Edit: update here.

Linux

Post navigation

Previous post
Next post

Related Posts

I was almost getting withdrawal symptoms…

4 March, 200529 July, 2007

…it’s been so long since I recompiled the kernel. After going swiftly through 2.6.0 to 2.6.9, I stuck with 2.6.9 for quite a while. For some reason my firewire storage support wasn’t working properly in 2.6.9 (even though my USB storage did). So I just compiled 2.6.10, and now it…

Read More

Some Linux/Unix commands worth knowing…

27 February, 200729 July, 2007

It seems like not a day goes by when I don’t run across someone’s blog listing “top 10 Linux commands you must know” or something like it. I get the feeling these are mostly posted by people who switched to Linux recently and want to share the experience. I switched…

Read More

Linux vs Windows, number i in a series of 2^n

20 May, 200629 July, 2007

I am now, at home, a mostly exclusive Linux user. There are now only 2 or 3 things that I boot Windows for. And I’m finding now that for many things, Windows is now a burden and in fact less powerful and (which is more significant) less easy than Linux….

Read More

Comments (3)

  1. Anonymous says:
    23 March, 2007 at 10:40 pm

    I was looking for port triggering, but there's not much documentation on it for OpenWRT. What package is it in?

    (http://livejournal.com/users/)

  2. elbeno says:
    24 March, 2007 at 3:18 am

    AFAIK it isn't in a package. I built the kernel module and iptables extension myself, grafting it in from the stock firmware. See my other post on the subject.

    (http://livejournal.com/users/elbeno)

  3. Anonymous says:
    2 April, 2007 at 7:32 pm

    Hi! I would also find port triggering very useful in my situation. I was wondering if you have any plans on releasing the packages or maybe trying to get them included in OpenWRT proper.

    BR,
    Paul Tötterman
    http://paul.totterman.name/

    (http://livejournal.com/users/)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

©2026 Why is a raven like a writing desk? | WordPress Theme by SuperbThemes