|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
Firewall x profano di linux...
Salve raga
![]() ho appena installato Linux Mandrake 9.1 e vorrei tentare un pò di farmi piacere sto nuovo s.o. ![]() Dopo aver perso mezza giornata ![]() ![]() ![]() Grazie x l'aiuto ![]()
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
Raga, datemi una mano
![]()
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
il firewall sotto linux sono decisamente piu' seri dei giocattolini per windows...
per poterti configurare PER BENE un firewall devi studiare un pochino (c'e' stata qualche giorno fa una discussione con degli ottimi link.. fai una ricerca e vedrai che la trovi)... Se vuoi decidere le regole del firewall tu, pero' non hai voglia di scriverle, puoi utilizzare gurddog, una buona interfaccia grafica! Ciao!
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
![]() |
![]() |
![]() |
#4 | ||
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
Quote:
![]() Manca il materiale! ![]() Quote:
Ma cos'è gurddog? Un'applicazione di Linux (la butto lì)? ![]()
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
||
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Aug 2003
Città: /dev/zero
Messaggi: 666
|
penso un front-end grafico per iptables
__________________
Powered By Imac 27" , iPhone X and watch Series 5 Si sono un apple fan ![]() |
![]() |
![]() |
![]() |
#6 | ||
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
Quote:
Quote:
Se hai veramente voglia di imparare devi sempre iniziare da qui: www.google.com/linux o con il tasto cerca del forum vedrai che risolvi il 99% dei problemi! Se dopo le ricerche non trovi nulla di soddisfacente o hai altri dubbi, posta pure!! Ciao!
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
||
![]() |
![]() |
![]() |
#7 | ||
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
Quote:
![]() Facendo una ricerca ho trovato questo... Quote:
![]() Ho superato quasi tutti i test su pcflank.com... Ora in teoria dovrei essere al "sicuro"? ![]()
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
||
![]() |
![]() |
![]() |
#8 |
Member
Iscritto dal: Jun 2001
Città: Mar del Plata
Messaggi: 109
|
non capisco
![]() Io faccio copia incolla su un terminale come root e mi viene fuori questo casino --------------------------------------------------- [root@localhost guster]# #Flush completo [root@localhost guster]# iptables -F bash: iptables: command not found [root@localhost guster]# iptables -t nat -F bash: iptables: command not found [root@localhost guster]# [root@localhost guster]# #Apro le porte http, ssh, telnet e ftp e droppo tutto il resto [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport http -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport ssh -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport telnet -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport ftp -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state INVALID,NEW -j DROP bash: iptables: command not found [root@localhost guster]# [root@localhost guster]# #Abilito il forwarding delle porte 22 e 21 e droppo tutto il resto [root@localhost guster]# iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp --dport ssh -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp --dport ftp -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A FORWARD -i ppp0 -m state --state INVALID,NEW -j DROP bash: iptables: command not found [root@localhost guster]# [root@localhost guster]# #Abilito il masquerade verso internet e il forward dei pacchetti [root@localhost guster]# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE bash: iptables: command not found [root@localhost guster]# echo 1 > /proc/sys/net/ipv4/ip_forward [root@localhost guster]# echo 0 > /proc/sys/net/ipv4/ip_forward [root@localhost guster]# iptables -F bash: iptables: command not found [root@localhost guster]# echo 0 > /proc/sys/net/ipv4/ip_forward [root@localhost guster]# [root@localhost guster]# #Flush completo [root@localhost guster]# iptables -F bash: iptables: command not found [root@localhost guster]# iptables -t nat -F bash: iptables: command not found [root@localhost guster]# [root@localhost guster]# #Apro le porte http, ssh, telnet e ftp e droppo tutto il resto [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport http -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport ssh -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport telnet -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state NEW -p tcp --dport ftp -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A INPUT -i ppp0 -m state --state INVALID,NEW -j DROP bash: iptables: command not found [root@localhost guster]# [root@localhost guster]# #Abilito il forwarding delle porte 22 e 21 e droppo tutto il resto [root@localhost guster]# iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp --dport ssh -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp --dport ftp -j ACCEPT bash: iptables: command not found [root@localhost guster]# iptables -A FORWARD -i ppp0 -m state --state INVALID,NEW -j DROP bash: iptables: command not found [root@localhost guster]# [root@localhost guster]# #Abilito il masquerade verso internet e il forward dei pacchetti [root@localhost guster]# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE bash: iptables: command not found [root@localhost guster]# echo 1 > /proc/sys/net/ipv4/ip_forward ------------------------------------------------------------ ma iptables è installato sul mio sistema(Fedora Core 1B),quindi non capisco.
__________________
"La única lucha que se pierde es la que se abandona" User Linux #349019 In a world without frontiers, who needs Gates and Windows? |
![]() |
![]() |
![]() |
#9 |
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
Magari dirò una ca@@ata
![]() ![]()
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
quello di spora e' uno script!
fai cosi: apri un editor di testo copiaci dentro tutto quanto metti come prima riga: #!/bin/bash salvalo (un nome tipo Firewall.sh) poi rendilo eseguibile: chmod +x Firewall.sh e infine lancialo: ./Firewall.sh comunque sia leggendo quello scriptino, tu hai bisogno di aprire le porte http, ftp, ssh e telnet????? Il tuo computer deve solo navigare o fa anche da server?? e poi il tuo computer e' attaccato ad internet per fare da gateway ad altri pc nella LAN o e' l'unico pc che hai? Ciao!
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
![]() |
![]() |
![]() |
#11 |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
noto adesso il problema....
non hai installato iptables o non lo hai nel path!!!!!!!!!!! Ciao
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
![]() |
![]() |
![]() |
#12 |
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
AAAAAARRRRRRRRRGGGGGGGGGHHHHHHHH
Ho appena notato che quando riavvio il pc, le stringhe di cui sopra non sono attivate! ![]() ![]() Come faccio a farle partire in automatico?
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
![]() |
![]() |
![]() |
#13 | ||
Member
Iscritto dal: Jun 2001
Città: Mar del Plata
Messaggi: 109
|
Quote:
Grazie,non ero riuscito mai a capire come si faceva ![]() Quote:
Grazie ancora
__________________
"La única lucha que se pierde es la que se abandona" User Linux #349019 In a world without frontiers, who needs Gates and Windows? |
||
![]() |
![]() |
![]() |
#14 | |
Member
Iscritto dal: Jun 2001
Città: Mar del Plata
Messaggi: 109
|
Quote:
![]() [root@localhost guster]# apt-get install iptables Lettura della lista di pacchetti... Done Calcolo dell'albero delle dipendenze... Done iptables is already the newest version. 0 upgraded, 0 newly installed, 0 removed and 29 not upgraded.
__________________
"La única lucha que se pierde es la que se abandona" User Linux #349019 In a world without frontiers, who needs Gates and Windows? |
|
![]() |
![]() |
![]() |
#15 |
Senior Member
Iscritto dal: Jan 2001
Messaggi: 3363
|
Per vedere se iptables è installato, da console di root fare:
# /etc/init.d/iptables Sul mio (mandrake 9.1) mi da: Uso: etc/init.d/iptables {start|stop|restart|condrestart|status|panic|save} [root@localhost giorgio]# é necessario avviare non direttamente l'eseguibile, ma lo script iptables presente in /etc/init.d (in /etc/init.d sono presenti molti script di avvio di eseguibili presenti in altre dir). Lo script di avvio serve ad avviare i vari "demoni" passando loro i parametri corretti per il funzionamento. Comunque con /etc/init.d start lo avvii, con .... stop lo fermi, con restart lo riavvii, ecc... prova vedere cosa ti dice. L'eseguibile si trova in /sbin, ma bisogna avviarlo tramite l'apposito script /etc/init.d/iptables. facendo # iptables -h o #man iptables hai (come al solito tutti i comandi, i parametri e le opzioni possibili. Tuttavia, ti conviene cercare qualche How-To o quelle programma grafico per la configurazione. Collegandoti con un semplice modem è INDISPENSABILE usare un firewall per proteggerti. Iptables è l'ideale per farlo. Devi bloccare tutte le porte che non usi e rifiutare (DROP) tutti i pacchetti che non hai richiesto su internet ... Farlo non è difficile, ma bisogna leggere qualcosa ... |
![]() |
![]() |
![]() |
#16 |
Senior Member
Iscritto dal: Jan 2001
Messaggi: 3363
|
Per Fire Fox II. Ma ssh, telnet ed ftp ti servono ? se non ti servono "droppale tutte" - Ad es. la porta 21 è per l'FTP.
La regola essenziale per la sicurezza è chiudere tutti i servizi non indispensabili ... quindi se non ti servono chiudili ... # iptables -F chiude tutto. Se non li hai bisogno non mettere le righe relative a ssh, ftp e telnet ... Ciao |
![]() |
![]() |
![]() |
#17 | |
Member
Iscritto dal: Jun 2001
Città: Mar del Plata
Messaggi: 109
|
Quote:
![]() Iptables attivato [root@localhost guster]# /etc/init.d/iptables start Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ] Applying iptables firewall rules: [ OK ]
__________________
"La única lucha que se pierde es la que se abandona" User Linux #349019 In a world without frontiers, who needs Gates and Windows? |
|
![]() |
![]() |
![]() |
#18 | |
Senior Member
Iscritto dal: Nov 2000
Città: Salerno
Messaggi: 4338
|
Quote:
![]() Come già detto sopra, sai per caso come avviare il firewall in automatico all'avvio di linux? Inoltre, è possibile fare in mode che su IRC il mio pc venga riconosciuto come localhost 127.0.0.1? (Scusate se vi bombardo di somande...) ![]()
__________________
Doc : "Ovviamente, il continuum temporale è stato interrotto creando questa nuova temporale sequenza di eventi risultante in questa realtà alternativa" Marty : ... ![]() ![]() |
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 17:45.