Jump to content

Help with Linux Firewall


wolvie_rs

Recommended Posts

Good morning!

Hello for all!

Here, in home, i'm using a internet connection of my job. In my job, we have a linux firewall. Talking with my network administrator, he told me to use this rule to open my port to Bitorrent connections:

iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 65535 -j DNAT --to 172.16.0.10

My static ip are 172.16.0.10 and i'm using port number 65535 to connect.

There is another rule or procediment to make togheter? Is this rule ok? I'm asking this because when a peer conect to my computer, the upload speed is to slow, and the connection have a 30 or 40 sec. of duration and the peer drop. And the speed, something like 3 or 4Kbps... when i have a 45kbps of upload...

Thanks and sorry about my english, it's not so good...

Hugs from a Brazilian friend!

Link to comment
Share on other sites

First I'm not sure if you need to specify number of your port, that is:

iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 65535 -j DNAT --to 172.16.0.10:65535

And you may need to add this line

iptables -I FORWARD -p tcp -i eth0 -d 172.16.0.10 --dport 65535 -j ACCEPT

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...