| View previous topic :: View next topic |
| Author |
Message |
Galbrezu
Joined: 23 Nov 2008 Posts: 2
|
Posted: Sun Nov 23, 2008 10:57 pm Post subject: Port Forwarding |
|
|
Alright, I've got a pretty basic router setup running ETH00 is my Gateway and ETH01 is connected to the internet.
All I need to do is get some ports open for BitTorrent and a few other applications.
Virtual Server doesn't seem to be working and I can't figure out the firewall options.
Can anybody give me a hand or point me in the right direction? |
|
| Back to top |
|
 |
vmv4
Joined: 21 Sep 2007 Posts: 28
|
Posted: Mon Nov 24, 2008 8:13 am Post subject: |
|
|
Virtual server actually works. Try to disable firewall completely and give it a try.
Regards, vmv4 |
|
| Back to top |
|
 |
Galbrezu
Joined: 23 Nov 2008 Posts: 2
|
Posted: Tue Nov 25, 2008 1:32 pm Post subject: |
|
|
| Ok, got another question now, how do I turn off the firewall? |
|
| Back to top |
|
 |
vmv4
Joined: 21 Sep 2007 Posts: 28
|
Posted: Tue Nov 25, 2008 2:31 pm Post subject: |
|
|
The simpliest way is to set "Policy" to "ACCEPT" under these chains: INPUT, FORWARD and OUTPUT. I believe you didn't create custom chains. Also if there are any DROP rules within these chains, uncheck them under "Active" column.
BitTorrent uses a range of ports, so it is not easy to add many rules via [Router] -> [Virtual Server]. Instead I'd suggest you to add single iptables command to startup sequence via menu [Setup] -> [Startup/Cron] -> [NAT and Virtual Servers]:
iptables -t nat -A PREROUTING -p tcp -i ETH01 --destination-port 6881-6999 -j DNAT --to-destination=you.local.ip.address
Regards,
vmv4 |
|
| Back to top |
|
 |
|