<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[configurazione mysqld]]></title><description><![CDATA[<p dir="auto">sicuramente tra un po' mi manderete al diavolo, ma, chi lo fa lo sa che la configurazione di un server non è cosa immediata</p>
<p dir="auto">Prima di tutto il firewall attivo</p>
<blockquote>
<p dir="auto">/sbin/iptables -X<br />
/sbin/iptables -F</p>
<h1>di default blocco tutto in ingresso</h1>
<p dir="auto">/sbin/iptables -P INPUT DROP<br />
/sbin/iptables -P OUTPUT ACCEPT</p>
<p dir="auto"><a href="/hashtags/faccio">#faccio</a> passare tutto sulla loopback<br />
/sbin/iptables -A INPUT -i lo -j ACCEPT</p>
<h1>Permetto l'accesso ai dati che sono parte di una connessione stabilita precedentemente</h1>
<p dir="auto">/sbin/iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT</p>
<p dir="auto"><a href="/hashtags/apro">#apro</a> le porte personalizzate</p>
<h1>Permetto connessioni al server SSH</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp -m state --dport 22 --state NEW -j ACCEPT</p>
<h1>Permetto connessioni al server WEB</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp -m state --dport 80 --state NEW -j ACCEPT</p>
<h1>Permetto la connessione al server pop3</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp -m state --dport 110 --state NEW -j ACCEPT</p>
<h1>Permetto la connessione al server smtp</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp -m state --dport 25 --state NEW -j ACCEPT</p>
<h1>Permetto la connessione al server ftp</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp --dport 21 -m state --state NEW -j ACCEPT</p>
<h1># ACTIVE DATA CHANNEL</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp --dport 20 --sport 1024:65535 -m state --state NEW -j ACCEPT</p>
<h1># PASSIVE DATA CHANNEL</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT</p>
<h1>solo per 82.105.154.10 apre le porte per far funzionare ftp</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp --dport 1024:65535 -m state --state NEW -s 82.105.154.10 -j ACCEPT</p>
<h1>Apre la porta mysql</h1>
<p dir="auto">/sbin/iptables -A INPUT -p tcp -m tcp -m state --dport 3306 --state NEW -j ACCEPT</p>
<p dir="auto"><a href="/hashtags/apri">#Apri</a> la porta 9090<br />
/sbin/iptables -A INPUT -p tcp -m tcp -m state --dport 9090 --state NEW -j ACCEPT</p>
</blockquote>
<p dir="auto">selinux attivo</p>
<blockquote>
<p dir="auto">[root@IT104 sergio]# /usr/sbin/getsebool -a<br />
allow_console_login --&gt; off<br />
allow_cvs_read_shadow --&gt; off<br />
allow_daemons_dump_core --&gt; off<br />
allow_daemons_use_tty --&gt; off<br />
allow_execheap --&gt; off<br />
allow_execmem --&gt; on<br />
allow_execmod --&gt; off<br />
allow_execstack --&gt; on<br />
allow_ftpd_anon_write --&gt; off<br />
allow_ftpd_full_access --&gt; off<br />
allow_ftpd_use_cifs --&gt; off<br />
allow_ftpd_use_nfs --&gt; off<br />
allow_gssd_read_tmp --&gt; on<br />
allow_httpd_anon_write --&gt; off<br />
allow_httpd_mod_auth_pam --&gt; off<br />
allow_httpd_sys_script_anon_write --&gt; off<br />
allow_java_execstack --&gt; off<br />
allow_kerberos --&gt; on<br />
allow_mount_anyfile --&gt; off<br />
allow_mounton_anydir --&gt; on<br />
allow_nfsd_anon_write --&gt; off<br />
allow_polyinstantiation --&gt; off<br />
allow_ptrace --&gt; off<br />
allow_rsync_anon_write --&gt; off<br />
allow_saslauthd_read_shadow --&gt; off<br />
allow_smbd_anon_write --&gt; off<br />
allow_ssh_keysign --&gt; off<br />
allow_unconfined_execmem_dyntrans --&gt; off<br />
allow_unlabeled_packets --&gt; on<br />
allow_user_mysql_connect --&gt; off<br />
allow_ypbind --&gt; off<br />
allow_zebra_write_config --&gt; on<br />
cron_can_relabel --&gt; off<br />
fcron_crond --&gt; off<br />
ftp_home_dir --&gt; on<br />
global_ssp --&gt; off<br />
httpd_builtin_scripting --&gt; on<br />
httpd_can_network_connect --&gt; off<br />
httpd_can_network_connect_db --&gt; off<br />
httpd_can_network_relay --&gt; off<br />
httpd_enable_cgi --&gt; on<br />
httpd_enable_ftp_server --&gt; off<br />
httpd_enable_homedirs --&gt; on<br />
httpd_ssi_exec --&gt; off<br />
httpd_tty_comm --&gt; off<br />
httpd_unified --&gt; on<br />
httpd_use_cifs --&gt; off<br />
httpd_use_nfs --&gt; off<br />
mail_read_content --&gt; off<br />
named_write_master_zones --&gt; off<br />
nfs_export_all_ro --&gt; on<br />
nfs_export_all_rw --&gt; on<br />
pppd_can_insmod --&gt; off<br />
read_default_t --&gt; on<br />
read_untrusted_content --&gt; off<br />
samba_domain_controller --&gt; off<br />
samba_enable_home_dirs --&gt; off<br />
samba_export_all_ro --&gt; off<br />
samba_export_all_rw --&gt; off<br />
samba_run_unconfined --&gt; on<br />
samba_share_nfs --&gt; off<br />
secure_mode --&gt; off<br />
secure_mode_insmod --&gt; off<br />
secure_mode_policyload --&gt; off<br />
spamassassin_can_network --&gt; off<br />
spamd_enable_home_dirs --&gt; on<br />
squid_connect_any --&gt; off<br />
ssh_sysadm_login --&gt; off<br />
use_lpd_server --&gt; off<br />
use_nfs_home_dirs --&gt; off<br />
use_samba_home_dirs --&gt; off<br />
user_direct_mouse --&gt; off<br />
user_dmesg --&gt; off<br />
user_rw_noexattrfile --&gt; off<br />
user_tcp_server --&gt; off<br />
user_ttyfile_stat --&gt; off<br />
write_untrusted_content --&gt; off<br />
xdm_sysadm_login --&gt; off<br />
[root@IT104 sergio]#</p>
</blockquote>
<p dir="auto">ora passo al problema su mysql. Il firewall sulla porta 3306 è aperto e ho permesso l'accesso dal'l ip di casa al database con grant all privileges ......</p>
<p dir="auto">Il problema è che se provo a collegarmi con<br />
$mysql -h 151.1.162.104 (ip del server dedicato)<br />
non ci riesco come se la porta fosse chiusa. Dovrei avere almeno una risposta tipo<br />
ERROR 1045 (28000): Access denied for user 'sergio'@'151.1.162.104' (using password: NO)<br />
scusate per il tormento<br />
ciao<br />
sergio</p>
]]></description><link>https://dev.connect.gt/topic/42305/configurazione-mysqld</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 06:50:06 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/42305.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Jul 2007 18:37:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to configurazione mysqld on Thu, 30 Aug 2007 16:17:11 GMT]]></title><description><![CDATA[<p dir="auto">c'era un firewall hardware che bloccava le porte alte<br />
ciao<br />
sergio</p>
]]></description><link>https://dev.connect.gt/post/575254</link><guid isPermaLink="true">https://dev.connect.gt/post/575254</guid><dc:creator><![CDATA[mondobimbi]]></dc:creator><pubDate>Thu, 30 Aug 2007 16:17:11 GMT</pubDate></item><item><title><![CDATA[Reply to configurazione mysqld on Wed, 01 Aug 2007 09:03:44 GMT]]></title><description><![CDATA[<p dir="auto">hanno incasinato parecchio con MySQL nelle ultime versioni....il demone è impostato per non ricevere connessioni dall'esterno....</p>
<p dir="auto">fai un <strong>netstat -na</strong> e verifica che il demone sia in ascolto</p>
]]></description><link>https://dev.connect.gt/post/575253</link><guid isPermaLink="true">https://dev.connect.gt/post/575253</guid><dc:creator><![CDATA[paolino]]></dc:creator><pubDate>Wed, 01 Aug 2007 09:03:44 GMT</pubDate></item></channel></rss>