Hello!
I went through a lot of tutorials and posts here, but still no luck in solving my problem. So I decided to ask you for help.
I'd like to achieve two things - have SSH available from WAN as well as a range of ports for rtorrent. This means port 22 and i.e. 51777-51800 ports to be open.
My current post-firewall file is:
Unfortunately (when testing with http://ping.eu/port-chk/) I can confirm only 22 port to be open. The next line is for some reason ignored.Code:#!/bin/sh iptables -D INPUT -j DROP iptables -A INPUT -p tcp --syn -i "$1" --dport 22 -j ACCEPT iptables -A INPUT -p tcp --dport 51777:51800 -j ACCEPT iptables -A INPUT -j DROP
Could anyone tell me what is wrong here?




Reply With Quote
