www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Port Forwarding

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking
View previous topic :: View next topic  
Author Message
Galbrezu



Joined: 23 Nov 2008
Posts: 2

PostPosted: Sun Nov 23, 2008 10:57 pm    Post subject: Port Forwarding Reply with quote

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
View user's profile Send private message
vmv4



Joined: 21 Sep 2007
Posts: 28

PostPosted: Mon Nov 24, 2008 8:13 am    Post subject: Reply with quote

Virtual server actually works. Try to disable firewall completely and give it a try.

Regards, vmv4
Back to top
View user's profile Send private message
Galbrezu



Joined: 23 Nov 2008
Posts: 2

PostPosted: Tue Nov 25, 2008 1:32 pm    Post subject: Reply with quote

Ok, got another question now, how do I turn off the firewall?
Back to top
View user's profile Send private message
vmv4



Joined: 21 Sep 2007
Posts: 28

PostPosted: Tue Nov 25, 2008 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group