<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Проблема с портами]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=13908</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=13908&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Проблема с портами».]]></description>
		<lastBuildDate>Sat, 28 May 2011 09:54:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183165#p183165</link>
			<description><![CDATA[<p><strong>wers</strong>, по-моему, правильнее изменить переменные в файле<br /><em>iptables-config</em></p><div class="codebox"><pre><code>IPTABLES_SAVE_ON_STOP=&quot;yes&quot;

IPTABLES_SAVE_ON_RESTART=&quot;yes&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Sat, 28 May 2011 09:54:21 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183165#p183165</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183150#p183150</link>
			<description><![CDATA[<p>всё решилось банально просто!<br />команда из под root:<br /></p><div class="codebox"><pre><code>service iptables start</code></pre></div><p>система загружает правила из файла /etc/sysconfig/iptables<br />при команде:<br /></p><div class="codebox"><pre><code>service iptables stop</code></pre></div><p>система сохраняет текущий набор правил в этот файл и сбрасывает цепочки.</p>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Sat, 28 May 2011 09:24:57 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183150#p183150</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183118#p183118</link>
			<description><![CDATA[<p>выкл.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>Chain INPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>Chain FORWARD (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>Chain OUTPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination</p></div></div><p>вкл.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>Chain INPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state RELATED,ESTABLISHED <br />ACCEPT&nbsp; &nbsp; &nbsp;icmp --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state NEW tcp dpt:22 <br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state NEW tcp dpt:65399 <br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state NEW udp dpt:65399 <br />REJECT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reject-with icmp-host-prohibited </p><p>Chain FORWARD (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />REJECT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reject-with icmp-host-prohibited </p><p>Chain OUTPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination</p></div></div>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Sat, 28 May 2011 07:35:24 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183118#p183118</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183115#p183115</link>
			<description><![CDATA[<p><strong>wers</strong>, покажите вывод команды<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">iptables -L -n</div><br />при запущенном firewall и остановленном.</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Sat, 28 May 2011 07:29:09 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183115#p183115</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183114#p183114</link>
			<description><![CDATA[<p>iptables<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p># Firewall configuration written by system-config-firewall<br /># Manual customization of this file is not recommended.<br />*filter<br />:INPUT ACCEPT [0:0]<br />:FORWARD ACCEPT [0:0]<br />:OUTPUT ACCEPT [0:0]<br />-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />-A INPUT -p icmp -j ACCEPT<br />-A INPUT -i lo -j ACCEPT<br />-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT<br />-A INPUT -m state --state NEW -m tcp -p tcp --dport 65399 -j ACCEPT<br />-A INPUT -m state --state NEW -m udp -p udp --dport 65399 -j ACCEPT<br />-A INPUT -j REJECT --reject-with icmp-host-prohibited<br />-A FORWARD -j REJECT --reject-with icmp-host-prohibited<br />COMMIT</p></div></div><p>iptables-config<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p># Load additional iptables modules (nat helpers)<br />#&nbsp; &nbsp;Default: -none-<br /># Space separated list of nat helpers (e.g. &#039;ip_nat_ftp ip_nat_irc&#039;), which<br /># are loaded after the firewall rules are applied. Options for the helpers are<br /># stored in /etc/modprobe.conf.<br />IPTABLES_MODULES=&quot;&quot;</p><p># Unload modules on restart and stop<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># This option has to be &#039;yes&#039; to get to a sane state for a firewall<br /># restart or stop. Only set to &#039;no&#039; if there are problems unloading netfilter<br /># modules.<br />IPTABLES_MODULES_UNLOAD=&quot;yes&quot;</p><p># Save current firewall rules on stop.<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: no<br /># Saves all firewall rules to /etc/sysconfig/iptables if firewall gets stopped<br /># (e.g. on system shutdown).<br />IPTABLES_SAVE_ON_STOP=&quot;no&quot;</p><p># Save current firewall rules on restart.<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: no<br /># Saves all firewall rules to /etc/sysconfig/iptables if firewall gets<br /># restarted.<br />IPTABLES_SAVE_ON_RESTART=&quot;no&quot;</p><p># Save (and restore) rule and chain counter.<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: no<br /># Save counters for rules and chains to /etc/sysconfig/iptables if<br /># &#039;service iptables save&#039; is called or on stop or restart if SAVE_ON_STOP or<br /># SAVE_ON_RESTART is enabled.<br />IPTABLES_SAVE_COUNTER=&quot;no&quot;</p><p># Numeric status output<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># Print IP addresses and port numbers in numeric format in the status output.<br />IPTABLES_STATUS_NUMERIC=&quot;yes&quot;</p><p># Verbose status output<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># Print info about the number of packets and bytes plus the &quot;input-&quot; and<br /># &quot;outputdevice&quot; in the status output.<br />IPTABLES_STATUS_VERBOSE=&quot;no&quot;</p><p># Status output with numbered lines<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># Print a counter/number for every rule in the status output.<br />IPTABLES_STATUS_LINENUMBERS=&quot;yes&quot;</p></div></div><p>ip6tables</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p># Firewall configuration written by system-config-firewall<br /># Manual customization of this file is not recommended.<br />*filter<br />:INPUT ACCEPT [0:0]<br />:FORWARD ACCEPT [0:0]<br />:OUTPUT ACCEPT [0:0]<br />-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />-A INPUT -p ipv6-icmp -j ACCEPT<br />-A INPUT -i lo -j ACCEPT<br />-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT<br />-A INPUT -m state --state NEW -m tcp -p tcp --dport 65399 -j ACCEPT<br />-A INPUT -m state --state NEW -m udp -p udp --dport 65399 -j ACCEPT<br />-A INPUT -j REJECT --reject-with icmp6-adm-prohibited<br />-A FORWARD -j REJECT --reject-with icmp6-adm-prohibited<br />COMMIT</p></div></div><p>ip6tables-config<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p># Load additional ip6tables modules (nat helpers)<br />#&nbsp; &nbsp;Default: -none-<br /># Space separated list of nat helpers (e.g. &#039;ip_nat_ftp ip_nat_irc&#039;), which<br /># are loaded after the firewall rules are applied. Options for the helpers are<br /># stored in /etc/modprobe.conf.<br />IP6TABLES_MODULES=&quot;&quot;</p><p># Unload modules on restart and stop<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># This option has to be &#039;yes&#039; to get to a sane state for a firewall<br /># restart or stop. Only set to &#039;no&#039; if there are problems unloading netfilter<br /># modules.<br />IP6TABLES_MODULES_UNLOAD=&quot;yes&quot;</p><p># Save current firewall rules on stop.<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: no<br /># Saves all firewall rules to /etc/sysconfig/ip6tables if firewall gets stopped<br /># (e.g. on system shutdown).<br />IP6TABLES_SAVE_ON_STOP=&quot;no&quot;</p><p># Save current firewall rules on restart.<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: no<br /># Saves all firewall rules to /etc/sysconfig/ip6tables if firewall gets<br /># restarted.<br />IP6TABLES_SAVE_ON_RESTART=&quot;no&quot;</p><p># Save (and restore) rule and chain counter.<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: no<br /># Save counters for rules and chains to /etc/sysconfig/ip6tables if<br /># &#039;service ip6tables save&#039; is called or on stop or restart if SAVE_ON_STOP or<br /># SAVE_ON_RESTART is enabled.<br />IP6TABLES_SAVE_COUNTER=&quot;no&quot;</p><p># Numeric status output<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># Print IP addresses and port numbers in numeric format in the status output.<br />IP6TABLES_STATUS_NUMERIC=&quot;yes&quot;</p><p># Verbose status output<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># Print info about the number of packets and bytes plus the &quot;input-&quot; and<br /># &quot;outputdevice&quot; in the status output.<br />IP6TABLES_STATUS_VERBOSE=&quot;no&quot;</p><p># Status output with numbered lines<br />#&nbsp; &nbsp;Value: yes|no,&nbsp; default: yes<br /># Print a counter/number for every rule in the status output.<br />IP6TABLES_STATUS_LINENUMBERS=&quot;yes&quot;</p></div></div>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Sat, 28 May 2011 07:23:49 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183114#p183114</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183089#p183089</link>
			<description><![CDATA[<p><strong>wers</strong>, тогда уж покажите и<br /></p><ul><li><p>/etc/sysconfig/iptables</p></li><li><p>/etc/sysconfig/iptables-config</p></li><li><p>/etc/sysconfig/ip6tables</p></li><li><p>/etc/sysconfig/ip6tables-config</p></li></ul>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Sat, 28 May 2011 05:36:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183089#p183089</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183058#p183058</link>
			<description><![CDATA[<p>ip6tables<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#!/bin/sh
#
# ip6tables    Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:    Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ &quot;$IPV&quot; = &quot;ip&quot; ] &amp;&amp; _IPV=&quot;ipv4&quot; || _IPV=&quot;ipv6&quot;
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $&quot;${IP6TABLES}: /sbin/$IP6TABLES does not exist.&quot;; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2&gt;&amp;1 | grep -q module-init-tools \
    &amp;&amp; NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=&quot;&quot;
IP6TABLES_MODULES_UNLOAD=&quot;yes&quot;
IP6TABLES_SAVE_ON_STOP=&quot;no&quot;
IP6TABLES_SAVE_ON_RESTART=&quot;no&quot;
IP6TABLES_SAVE_COUNTER=&quot;no&quot;
IP6TABLES_STATUS_NUMERIC=&quot;yes&quot;
IP6TABLES_STATUS_VERBOSE=&quot;no&quot;
IP6TABLES_STATUS_LINENUMBERS=&quot;yes&quot;

# Load firewall configuration.
[ -f &quot;$IP6TABLES_CONFIG&quot; ] &amp;&amp; . &quot;$IP6TABLES_CONFIG&quot;

# Netfilter modules
NF_MODULES=($(lsmod | awk &quot;/^${IPV}table_/ {print \$1}&quot;) ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat &quot;$PROC_IP6TABLES_NAMES&quot; 2&gt;/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
    &amp;&amp; ref=$(lsmod | awk &quot;/^${mod}/ { print \$4; }&quot; | tr &#039;,&#039; &#039; &#039;) \
    || ref=$(lsmod | grep ^${mod} | cut -d &quot;[&quot; -s -f 2 | cut -d &quot;]&quot; -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
    rmmod_r $i
    let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q &quot;^${mod}&quot; /proc/modules ; then
    modprobe -r $mod &gt; /dev/null 2&gt;&amp;1
    res=$?
    [ $res -eq 0 ] || echo -n &quot; $mod&quot;
    let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e &quot;$PROC_IP6TABLES_NAMES&quot; ] &amp;&amp; return 0

    # Check if firewall is configured (has tables)
    [ -z &quot;$NF_TABLES&quot; ] &amp;&amp; return 1

    echo -n $&quot;${IP6TABLES}: Flushing firewall rules: &quot;
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
    $IP6TABLES -t $i -F;
    let ret+=$?;

        # Delete firewall chains.
    $IP6TABLES -t $i -X;
    let ret+=$?;

    # Set counter to zero.
    $IP6TABLES -t $i -Z;
    let ret+=$?;
    done

    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e &quot;$PROC_IP6TABLES_NAMES&quot; ] &amp;&amp; return 0

    # Check if firewall is configured (has tables)
    tables=$(cat &quot;$PROC_IP6TABLES_NAMES&quot; 2&gt;/dev/null)
    [ -z &quot;$tables&quot; ] &amp;&amp; return 1

    echo -n $&quot;${IP6TABLES}: Setting chains to policy $policy: &quot;
    ret=0
    for i in $tables; do
    echo -n &quot;$i &quot;
    case &quot;$i&quot; in
        raw)
        $IP6TABLES -t raw -P PREROUTING $policy \
            &amp;&amp; $IP6TABLES -t raw -P OUTPUT $policy \
            || let ret+=1
        ;;
        filter)
                $IP6TABLES -t filter -P INPUT $policy \
            &amp;&amp; $IP6TABLES -t filter -P OUTPUT $policy \
            &amp;&amp; $IP6TABLES -t filter -P FORWARD $policy \
            || let ret+=1
        ;;
        nat)
        $IP6TABLES -t nat -P PREROUTING $policy \
            &amp;&amp; $IP6TABLES -t nat -P POSTROUTING $policy \
            &amp;&amp; $IP6TABLES -t nat -P OUTPUT $policy \
            || let ret+=1
        ;;
        mangle)
            $IP6TABLES -t mangle -P PREROUTING $policy \
            &amp;&amp; $IP6TABLES -t mangle -P POSTROUTING $policy \
            &amp;&amp; $IP6TABLES -t mangle -P INPUT $policy \
            &amp;&amp; $IP6TABLES -t mangle -P OUTPUT $policy \
            &amp;&amp; $IP6TABLES -t mangle -P FORWARD $policy \
            || let ret+=1
        ;;
        *)
            let ret+=1
        ;;
        esac
    done

    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f &quot;$IP6TABLES_DATA&quot; ] &amp;&amp; return 6

    # check if ipv6 module load is deactivated
    if [ &quot;${_IPV}&quot; = &quot;ipv6&quot; ] \
    &amp;&amp; grep -qIsE &quot;^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)&quot; /etc/modprobe.conf /etc/modprobe.d/* ; then
    echo $&quot;${IP6TABLES}: ${_IPV} is disabled.&quot;
    return 150
    fi

    echo -n $&quot;${IP6TABLES}: Applying firewall rules: &quot;

    OPT=
    [ &quot;x$IP6TABLES_SAVE_COUNTER&quot; = &quot;xyes&quot; ] &amp;&amp; OPT=&quot;-c&quot;

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
    success; echo
    else
    failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n &quot;$IP6TABLES_MODULES&quot; ]; then
    echo -n $&quot;${IP6TABLES}: Loading additional modules: &quot;
    ret=0
    for mod in $IP6TABLES_MODULES; do
        echo -n &quot;$mod &quot;
        modprobe $mod &gt; /dev/null 2&gt;&amp;1
        let ret+=$?;
    done
    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e &quot;$PROC_IP6TABLES_NAMES&quot; ] &amp;&amp; return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ &quot;x$IP6TABLES_MODULES_UNLOAD&quot; = &quot;xyes&quot; ]; then
    echo -n $&quot;${IP6TABLES}: Unloading modules: &quot;
    ret=0
    for mod in ${NF_MODULES[*]}; do
        rmmod_r $mod
        let ret+=$?;
    done
    # try to unload remaining netfilter modules used by ipv4 and ipv6 
    # netfilter
    for mod in ${NF_MODULES_COMMON[*]}; do
        rmmod_r $mod &gt;/dev/null
    done
    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e &quot;$PROC_IP6TABLES_NAMES&quot; ] &amp;&amp; return 0

    # Check if firewall is configured (has tables)
    [ -z &quot;$NF_TABLES&quot; ] &amp;&amp; return 6

    echo -n $&quot;${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: &quot;

    OPT=
    [ &quot;x$IP6TABLES_SAVE_COUNTER&quot; = &quot;xyes&quot; ] &amp;&amp; OPT=&quot;-c&quot;

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
    &amp;&amp; chmod 600 &quot;$TMP_FILE&quot; \
    &amp;&amp; $IP6TABLES-save $OPT &gt; $TMP_FILE 2&gt;/dev/null \
    &amp;&amp; size=$(stat -c &#039;%s&#039; $TMP_FILE) &amp;&amp; [ $size -gt 0 ] \
    || ret=1
    if [ $ret -eq 0 ]; then
    if [ -e $IP6TABLES_DATA ]; then
        cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
        &amp;&amp; chmod 600 $IP6TABLES_DATA.save \
        || ret=1
    fi
    if [ $ret -eq 0 ]; then
        cp -f $TMP_FILE $IP6TABLES_DATA \
        &amp;&amp; chmod 600 $IP6TABLES_DATA \
            || ret=1
    fi
    fi
    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f &quot;$VAR_SUBSYS_IP6TABLES&quot; -a -z &quot;$NF_TABLES&quot; ]; then
    echo $&quot;${IP6TABLES}: Firewall is not running.&quot;
    return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e &quot;$PROC_IP6TABLES_NAMES&quot; ]; then
    echo $&quot;${IP6TABLES}: Firewall modules are not loaded.&quot;
    return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z &quot;$NF_TABLES&quot; ]; then
    echo $&quot;${IP6TABLES}: Firewall is not configured. &quot;
    return 3
    fi

    NUM=
    [ &quot;x$IP6TABLES_STATUS_NUMERIC&quot; = &quot;xyes&quot; ] &amp;&amp; NUM=&quot;-n&quot;
    VERBOSE= 
    [ &quot;x$IP6TABLES_STATUS_VERBOSE&quot; = &quot;xyes&quot; ] &amp;&amp; VERBOSE=&quot;--verbose&quot;
    COUNT=
    [ &quot;x$IP6TABLES_STATUS_LINENUMBERS&quot; = &quot;xyes&quot; ] &amp;&amp; COUNT=&quot;--line-numbers&quot;

    for table in $NF_TABLES; do
    echo $&quot;Table: $table&quot;
    $IP6TABLES -t $table --list $NUM $VERBOSE $COUNT &amp;&amp; echo
    done

    return 0
}

restart() {
    [ &quot;x$IP6TABLES_SAVE_ON_RESTART&quot; = &quot;xyes&quot; ] &amp;&amp; save
    stop
    start
}


case &quot;$1&quot; in
    start)
    [ -f &quot;$VAR_SUBSYS_IP6TABLES&quot; ] &amp;&amp; exit 0
    start
    RETVAL=$?
    ;;
    stop)
    [ &quot;x$IP6TABLES_SAVE_ON_STOP&quot; = &quot;xyes&quot; ] &amp;&amp; save
    stop
    RETVAL=$?
    ;;
    restart|force-reload)
    restart
    RETVAL=$?
    ;;
    condrestart|try-restart)
    [ ! -e &quot;$VAR_SUBSYS_IP6TABLES&quot; ] &amp;&amp; exit 0
    restart
    RETVAL=$?
    ;;
    status)
    status
    RETVAL=$?
    ;;
    panic)
    flush_n_delete
    set_policy DROP
    RETVAL=$?
        ;;
    save)
    save
    RETVAL=$?
    ;;
    *)
    echo $&quot;Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}&quot;
    RETVAL=2
    ;;
esac

exit $RETVAL</code></pre></div></div></div><br /><p>/etc/init.d/iptables выше т.е iptables.sh</p>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Fri, 27 May 2011 21:06:23 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183058#p183058</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183054#p183054</link>
			<description><![CDATA[<p><strong>wers</strong>, покажите (используя тэги «spoiler», при необходимости) файлы<br /></p><ul><li><p>/etc/init.d/iptables</p></li><li><p>/etc/init.d/ip6tables</p></li></ul>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Fri, 27 May 2011 20:43:58 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183054#p183054</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183051#p183051</link>
			<description><![CDATA[<p>iptables.sh<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#!/bin/sh
#
# iptables    Start iptables firewall
#
# chkconfig: 2345 08 92
# description:    Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ &quot;$IPV&quot; = &quot;ip&quot; ] &amp;&amp; _IPV=&quot;ipv4&quot; || _IPV=&quot;ipv6&quot;
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $&quot;${IPTABLES}: /sbin/$IPTABLES does not exist.&quot;; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2&gt;&amp;1 | grep -q module-init-tools \
    &amp;&amp; NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=&quot;&quot;
IPTABLES_MODULES_UNLOAD=&quot;yes&quot;
IPTABLES_SAVE_ON_STOP=&quot;no&quot;
IPTABLES_SAVE_ON_RESTART=&quot;no&quot;
IPTABLES_SAVE_COUNTER=&quot;no&quot;
IPTABLES_STATUS_NUMERIC=&quot;yes&quot;
IPTABLES_STATUS_VERBOSE=&quot;no&quot;
IPTABLES_STATUS_LINENUMBERS=&quot;yes&quot;

# Load firewall configuration.
[ -f &quot;$IPTABLES_CONFIG&quot; ] &amp;&amp; . &quot;$IPTABLES_CONFIG&quot;

# Netfilter modules
NF_MODULES=($(lsmod | awk &quot;/^${IPV}table_/ {print \$1}&quot;) ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat &quot;$PROC_IPTABLES_NAMES&quot; 2&gt;/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
    &amp;&amp; ref=$(lsmod | awk &quot;/^${mod}/ { print \$4; }&quot; | tr &#039;,&#039; &#039; &#039;) \
    || ref=$(lsmod | grep ^${mod} | cut -d &quot;[&quot; -s -f 2 | cut -d &quot;]&quot; -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
    rmmod_r $i
    let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q &quot;^${mod}&quot; /proc/modules ; then
    modprobe -r $mod &gt; /dev/null 2&gt;&amp;1
    res=$?
    [ $res -eq 0 ] || echo -n &quot; $mod&quot;
    let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e &quot;$PROC_IPTABLES_NAMES&quot; ] &amp;&amp; return 0

    # Check if firewall is configured (has tables)
    [ -z &quot;$NF_TABLES&quot; ] &amp;&amp; return 1

    echo -n $&quot;${IPTABLES}: Flushing firewall rules: &quot;
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
    $IPTABLES -t $i -F;
    let ret+=$?;

        # Delete firewall chains.
    $IPTABLES -t $i -X;
    let ret+=$?;

    # Set counter to zero.
    $IPTABLES -t $i -Z;
    let ret+=$?;
    done

    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e &quot;$PROC_IPTABLES_NAMES&quot; ] &amp;&amp; return 0

    # Check if firewall is configured (has tables)
    tables=$(cat &quot;$PROC_IPTABLES_NAMES&quot; 2&gt;/dev/null)
    [ -z &quot;$tables&quot; ] &amp;&amp; return 1

    echo -n $&quot;${IPTABLES}: Setting chains to policy $policy: &quot;
    ret=0
    for i in $tables; do
    echo -n &quot;$i &quot;
    case &quot;$i&quot; in
        raw)
        $IPTABLES -t raw -P PREROUTING $policy \
            &amp;&amp; $IPTABLES -t raw -P OUTPUT $policy \
            || let ret+=1
        ;;
        filter)
                $IPTABLES -t filter -P INPUT $policy \
            &amp;&amp; $IPTABLES -t filter -P OUTPUT $policy \
            &amp;&amp; $IPTABLES -t filter -P FORWARD $policy \
            || let ret+=1
        ;;
        nat)
        $IPTABLES -t nat -P PREROUTING $policy \
            &amp;&amp; $IPTABLES -t nat -P POSTROUTING $policy \
            &amp;&amp; $IPTABLES -t nat -P OUTPUT $policy \
            || let ret+=1
        ;;
        mangle)
            $IPTABLES -t mangle -P PREROUTING $policy \
            &amp;&amp; $IPTABLES -t mangle -P POSTROUTING $policy \
            &amp;&amp; $IPTABLES -t mangle -P INPUT $policy \
            &amp;&amp; $IPTABLES -t mangle -P OUTPUT $policy \
            &amp;&amp; $IPTABLES -t mangle -P FORWARD $policy \
            || let ret+=1
        ;;
        *)
            let ret+=1
        ;;
        esac
    done

    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f &quot;$IPTABLES_DATA&quot; ] &amp;&amp; return 6

    # check if ipv6 module load is deactivated
    if [ &quot;${_IPV}&quot; = &quot;ipv6&quot; ] \
    &amp;&amp; grep -qIsE &quot;^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)&quot; /etc/modprobe.conf /etc/modprobe.d/* ; then
    echo $&quot;${IPTABLES}: ${_IPV} is disabled.&quot;
    return 150
    fi

    echo -n $&quot;${IPTABLES}: Applying firewall rules: &quot;

    OPT=
    [ &quot;x$IPTABLES_SAVE_COUNTER&quot; = &quot;xyes&quot; ] &amp;&amp; OPT=&quot;-c&quot;

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
    success; echo
    else
    failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n &quot;$IPTABLES_MODULES&quot; ]; then
    echo -n $&quot;${IPTABLES}: Loading additional modules: &quot;
    ret=0
    for mod in $IPTABLES_MODULES; do
        echo -n &quot;$mod &quot;
        modprobe $mod &gt; /dev/null 2&gt;&amp;1
        let ret+=$?;
    done
    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e &quot;$PROC_IPTABLES_NAMES&quot; ] &amp;&amp; return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ &quot;x$IPTABLES_MODULES_UNLOAD&quot; = &quot;xyes&quot; ]; then
    echo -n $&quot;${IPTABLES}: Unloading modules: &quot;
    ret=0
    for mod in ${NF_MODULES[*]}; do
        rmmod_r $mod
        let ret+=$?;
    done
    # try to unload remaining netfilter modules used by ipv4 and ipv6 
    # netfilter
    for mod in ${NF_MODULES_COMMON[*]}; do
        rmmod_r $mod &gt;/dev/null
    done
    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e &quot;$PROC_IPTABLES_NAMES&quot; ] &amp;&amp; return 0

    # Check if firewall is configured (has tables)
    [ -z &quot;$NF_TABLES&quot; ] &amp;&amp; return 6

    echo -n $&quot;${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: &quot;

    OPT=
    [ &quot;x$IPTABLES_SAVE_COUNTER&quot; = &quot;xyes&quot; ] &amp;&amp; OPT=&quot;-c&quot;

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
    &amp;&amp; chmod 600 &quot;$TMP_FILE&quot; \
    &amp;&amp; $IPTABLES-save $OPT &gt; $TMP_FILE 2&gt;/dev/null \
    &amp;&amp; size=$(stat -c &#039;%s&#039; $TMP_FILE) &amp;&amp; [ $size -gt 0 ] \
    || ret=1
    if [ $ret -eq 0 ]; then
    if [ -e $IPTABLES_DATA ]; then
        cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
        &amp;&amp; chmod 600 $IPTABLES_DATA.save \
        || ret=1
    fi
    if [ $ret -eq 0 ]; then
        cp -f $TMP_FILE $IPTABLES_DATA \
        &amp;&amp; chmod 600 $IPTABLES_DATA \
            || ret=1
    fi
    fi
    [ $ret -eq 0 ] &amp;&amp; success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f &quot;$VAR_SUBSYS_IPTABLES&quot; -a -z &quot;$NF_TABLES&quot; ]; then
    echo $&quot;${IPTABLES}: Firewall is not running.&quot;
    return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e &quot;$PROC_IPTABLES_NAMES&quot; ]; then
    echo $&quot;${IPTABLES}: Firewall modules are not loaded.&quot;
    return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z &quot;$NF_TABLES&quot; ]; then
    echo $&quot;${IPTABLES}: Firewall is not configured. &quot;
    return 3
    fi

    NUM=
    [ &quot;x$IPTABLES_STATUS_NUMERIC&quot; = &quot;xyes&quot; ] &amp;&amp; NUM=&quot;-n&quot;
    VERBOSE= 
    [ &quot;x$IPTABLES_STATUS_VERBOSE&quot; = &quot;xyes&quot; ] &amp;&amp; VERBOSE=&quot;--verbose&quot;
    COUNT=
    [ &quot;x$IPTABLES_STATUS_LINENUMBERS&quot; = &quot;xyes&quot; ] &amp;&amp; COUNT=&quot;--line-numbers&quot;

    for table in $NF_TABLES; do
    echo $&quot;Table: $table&quot;
    $IPTABLES -t $table --list $NUM $VERBOSE $COUNT &amp;&amp; echo
    done

    return 0
}

restart() {
    [ &quot;x$IPTABLES_SAVE_ON_RESTART&quot; = &quot;xyes&quot; ] &amp;&amp; save
    stop
    start
}


case &quot;$1&quot; in
    start)
    [ -f &quot;$VAR_SUBSYS_IPTABLES&quot; ] &amp;&amp; exit 0
    start
    RETVAL=$?
    ;;
    stop)
    [ &quot;x$IPTABLES_SAVE_ON_STOP&quot; = &quot;xyes&quot; ] &amp;&amp; save
    stop
    RETVAL=$?
    ;;
    restart|force-reload)
    restart
    RETVAL=$?
    ;;
    condrestart|try-restart)
    [ ! -e &quot;$VAR_SUBSYS_IPTABLES&quot; ] &amp;&amp; exit 0
    restart
    RETVAL=$?
    ;;
    status)
    status
    RETVAL=$?
    ;;
    panic)
    flush_n_delete
    set_policy DROP
    RETVAL=$?
        ;;
    save)
    save
    RETVAL=$?
    ;;
    *)
    echo $&quot;Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}&quot;
    RETVAL=2
    ;;
esac

exit $RETVAL</code></pre></div></div></div><p> ls -l /etc/init.d/<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>[user@localhost ~]$ ls -l /etc/init.d/
итого 260
-rwxr-xr-x. 1 root root  3884 Май 14 19:09 abrt-ccpp
-rwxr-xr-x. 1 root root  1708 Май 14 19:09 abrtd
-rwxr-xr-x. 1 root root  1642 Май 14 19:09 abrt-oops
-rwxr-xr-x. 1 root root  2122 Фев  8 06:38 atd
-rwxr-xr-x. 1 root root  3378 Апр 21 01:30 auditd
-rwxr-xr-x. 1 root root  2540 Май  9 22:54 avahi-daemon
-rwxr-xr-x. 1 root root  5127 Апр  8 11:23 cgconfig
-rwxr-xr-x. 1 root root  3605 Апр  8 11:23 cgred
-rwxr-xr-x. 1 root root 10006 Фев  8 13:59 cpuspeed
-rwxr-xr-x. 1 root root  3017 Апр 12 12:11 cups
-rwxr-xr-x. 1 root root  1430 Фев  8 16:37 dnsmasq
-rwxr-xr-x. 1 root root  3055 Дек  1 12:23 fcoe
-rwxr-xr-x. 1 root root  2809 Май  5 15:50 firstboot
-rw-r--r--. 1 root root 19899 Апр 27 20:17 functions
-rwxr-xr-x. 1 root root  2676 Май  6 18:49 gpm
-rwxr-xr-x. 1 root root  8563 Фев 14 19:07 ip6tables
-rwxr-xr-x. 1 root root  8468 Фев 14 19:07 iptables
-rwxr-xr-x. 1 root root  1624 Фев  9 15:33 irda
-rwxr-xr-x. 1 root root  3745 Апр 30 11:33 iscsi
-rwxr-xr-x. 1 root root  3611 Апр 30 11:33 iscsid
-rwxr-xr-x. 1 root root   659 Апр 27 20:17 killall
-rwxr-xr-x. 1 root root  8617 Май 23 01:49 livesys
-rwxr-xr-x. 1 root root  1734 Май 23 01:48 livesys-late
-rwxr-xr-x. 1 root root  6293 Фев 10 15:12 lldpad
-r-xr-xr-x. 1 root root  2442 Фев  9 16:38 lvm2-monitor
-rwxr-xr-x. 1 root root  2904 Мар 31 19:56 mdmonitor
-rwxr-xr-x. 1 root root  2200 Май  2 19:23 messagebus
-rwxr-xr-x. 1 root root  2363 Фев  8 15:57 multipathd
-rwxr-xr-x. 1 root root  2980 Апр 27 20:17 netconsole
-rwxr-xr-x. 1 root root  5598 Апр 27 20:17 netfs
-rwxr-xr-x. 1 root root  7385 Апр 27 20:17 network
-rwxr-xr-x. 1 root root  2205 Май  9 10:01 NetworkManager
-rwxr-xr-x. 1 root root  1926 Май  6 19:24 ntpd
-rwxr-xr-x. 1 root root  2056 Май  6 19:24 ntpdate
-rwxr-xr-x. 1 root root  6256 Мар 17 15:26 openvpn
-rwxr-xr-x. 1 root root  1834 Фев  9 18:03 portreserve
-rwxr-xr-x. 1 root root  1741 Фев  9 11:44 pppoe-server
-rwxr-xr-x. 1 root root  1560 Фев  9 19:10 psacct
-rwxr-xr-x. 1 root root  1515 Фев  9 17:57 rdisc
-rwxr-xr-x. 1 root root  2659 Май 17 15:15 rfremixconf
-rwxr-xr-x. 1 root root  1979 Май 16 22:44 rsyslog
-rwxr-xr-x. 1 root root  1698 Апр 29 19:17 sandbox
-rwxr-xr-x. 1 root root  2056 Мар 23 17:44 saslauthd
-rwxr-xr-x. 1 root root  3719 Фев  9 15:29 sendmail
-rwxr-xr-x. 1 root root  1300 Янв 11 17:25 smolt
-rwxr-xr-x. 1 root root  4600 Апр 29 10:21 sshd
-rwxr-xr-x. 1 root root  1866 Апр 19 23:03 wpa_supplicant</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Fri, 27 May 2011 20:37:15 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183051#p183051</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183048#p183048</link>
			<description><![CDATA[<p><strong>wers</strong>, не могли бы вы показать полностью скрипт, запускающий firewall?</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Fri, 27 May 2011 20:12:47 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183048#p183048</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183043#p183043</link>
			<description><![CDATA[<p>машина не сервер. домашний комп. просто торрент клиент пишет что порт закрыт, нет раздачи ни на локальном треккере ни на внешних треккерах. забыл сказать, фаервол отключаю порт открывается.</p>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Fri, 27 May 2011 19:50:13 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183043#p183043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183042#p183042</link>
			<description><![CDATA[<div class="quotebox"><cite>wers пишет:</cite><blockquote><p>и на внешке и на локалке закрыт.</p></blockquote></div><p>Что-то я несколько запутался... Что значит «и на внешке и на локалке закрыт»?<br />Опишите, на какой машине поднят сервер, откуда пытаетесь подключиться клиентом? Или вы подключаетесь через веб-интерфейс?</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Fri, 27 May 2011 19:45:54 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183042#p183042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183039#p183039</link>
			<description><![CDATA[<p>подключён по кабелю. и на внешке и на локалке закрыт. утром слез с Ubuntu, всё было нормально</p>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Fri, 27 May 2011 19:35:04 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183039#p183039</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183037#p183037</link>
			<description><![CDATA[<div class="quotebox"><cite>wers пишет:</cite><blockquote><p>transmission и треккер показывают что порт закрыт. модемов и роутеров нет. в чём может быть проблема?</p></blockquote></div><p>А какое у вас подключение? Треккер внешний либо в локальной сети?</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Fri, 27 May 2011 19:30:59 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183037#p183037</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблема с портами]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=183036#p183036</link>
			<description><![CDATA[<p>вот; </p><div class="codebox"><pre><code>[user@localhost ~]$ lsof -i :65399
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
transmiss 1918 user   13u  IPv4  23900      0t0  TCP *:65399 (LISTEN)
transmiss 1918 user   14r  IPv6  23902      0t0  TCP *:65399 (LISTEN)
transmiss 1918 user   15w  IPv4  23903      0t0  UDP *:65399 
[user@localhost ~]$ grep &#039;peer-port&#039; ~/.config/transmission/settings.json
    &quot;peer-port&quot;: 65399, 
    &quot;peer-port-random-high&quot;: 65535, 
    &quot;peer-port-random-low&quot;: 49152, 
    &quot;peer-port-random-on-start&quot;: false, </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (wers)]]></author>
			<pubDate>Fri, 27 May 2011 19:27:08 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=183036#p183036</guid>
		</item>
	</channel>
</rss>
