Portál AbcLinuxu, 10. května 2025 06:03
FW_SERVICES_EXT_TCP="6891 9176 http https pop3 pop3s smtp"Nyni je otevreny jen pro ten kopete, nebo se mi muze do systemu kdokoli nabourat. Jak to lepe zabezpecit? To same pro port 9176, ktery je pro DCGUI-QT. Diky
Pokud vas to zajima, prectete si pro zacatek napr.
http://www.linuxjournal.com/article.php?sid=7296
http://www.balabit.com/products/zorp_gpl/tutorial/
man iptables
hledejte "owner".
# Which services ON THE FIREWALL should be accessible from either the internet # (or other untrusted networks), the dmz or internal (trusted networks)? # (see no.13 & 14 if you want to route traffic through the firewall) XXX # FW_SERVICES_EXT_TCP="" FW_SERVICES_DMZ_TCP="" FW_SERVICES_INT_TCP=""EXT --> sluzby pristupne z Internetu
FW_SERVICES_EXT_TCP="http https pop3 pop3s smtp"Kdyz pridam port 6891 do
FW_SERVICES_EXT_TCP="6891 http https pop3 pop3s smtp"tak jde odeslat soubor jinemu contactu
FW_SERVICES_EXT_TCP="http https pop3 pop3s smtp"dcgui-qu manual radi
$IPTABLES -A INPUT -i $EXTIF -d $PUBLICIP -p tcp --dport 9176 -j ACCEPT $IPTABLES -A INPUT -i $EXTIF -d $PUBLICIP -p udp --dport 9176 -j ACCEPTTak jsem pridal port 9176 do techto polozek:
FW_SERVICES_EXT_TCP="9176 http https pop3 pop3s smtp" FW_SERVICES_EXT_UDP="9176"tak funguje
FW_SERVICES_EXT_TCP="http https pop3 pop3s smtp"a predelam tuto polozku z "no" na "yes"
FW_ALLOW_INCOMING_HIGHPORTS_TCP="yes"tak to take funguje Ale co je vetsi zlo? K polozce "FW_ALLOW_INCOMING_HIGHPORTS_TCP" se pise
How is access allowed to high (unpriviliged [above 1023]) ports? # # You may either allow everyone from anyport access to your highports ("yes"), # disallow anyone ("no"), anyone who comes from a defined port (portnumber or # known portname) [note that this is easy to circumvent!], or just your # defined nameservers ("DNS"). # Note that you can't use rpc requests (e.g. rpcinfo, showmount) as root # from a firewall using this script (well, you can if you include range # 600:1023 in FW_SERVICES_EXT_UDP ...). # Please note that with v2.1 "yes" is not mandatory for active FTP from # the firewall anymore. # # Choice: "yes", "no", "DNS", portnumber or known portname, # if not set defaults to "no" # # Common: "ftp-data", better is "yes" to be sure that everything else works![]()
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.