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 iptables config

elbeno, 11 March, 200729 July, 2007

I think the relevant iptables commands for port triggering with Bittorrent are:

#iptables -t nat -A prerouting_wan -p tcp –dport 6881:6889 -j TRIGGER –trigger-type dnat –trigger-proto tcp –trigger-match 6881 –trigger-relate 6881-6889

This tells the router to do NAT on the packets arriving on the WAN TCP ports 6881 through 6889 as allowed by the trigger on TCP port 6881.

#iptables -A forwarding_wan -p tcp –dport 6881:6889 -j ACCEPT

And this tells the router to forward packets on TCP ports 6881 through 6889 (it should forward packets that have reached here through application of the previous rule).

Linux

Post navigation

Previous post
Next post

Related Posts

KDevelop: so much promise, but a bit rough around the edges

3 April, 200729 July, 2007

I’ve been trying to put together an app using KDevelop as my IDE. IDE-wise, it seems fine: all the usual stuff like syntax highlighting (of course) and code completion, etc. But I find its handling of the gnu autotools a bit rough. I haven’t found a way yet to specify…

Read More

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

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