που είναι το λάθος; iptables script

Antonis Kouzoupis kouzoupis.ant at gmail.com
Sun May 8 18:45:34 EEST 2011


On Sun, May 08, 2011 at 06:36:09PM +0300, Demosthenes Koptsis wrote:
> rules()
> {
>   ####### Allow any ssh client to any remote ssh server
>   iptables -A OUTPUT -p tcp --dport 22 -j ACCEPT
>   iptables -A INPUT -p tcp --sport 22 -j ACCEPT 
>   ##########################################################
> }

Stous parapano kanones exeis valei anapoda to source port kai to destination
port. Stin INPUT alusida 8a prepei na exeis to destination port kai stin OUTPUT
to source.

Skepsou xontrika ti timh exoun ta paketa otan ftanoun sto mhxanhma sou sto pedio
tou source kai destination port...

-- 
Αντώνης Κουζούπης
Antonis Kouzoupis


More information about the Linux-greek-users mailing list