Keresés

Új hozzászólás Aktív témák

  • batagy

    őstag

    válasz rt06 #16178 üzenetére

    OK, köszi! :)

    Szerencsére az alkalmazás más speciális usernév alatt fut, így akkor meg tudom oldani!
    A kernel verziója 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 x86_64 x86_64 x86_64 GNU/Linux.

    Valóban 123-as az NTP, csak véletlen elírtam.

    Egyébként be is adtam, megette:

    hostname:~ # iptables --list
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    hostname:~ #

    hostname:~ # /usr/sbin/iptables -A OUTPUT -p udp -m owner --uid-owner specuser --dport 123 -j DROP
    hostname:~ #
    hostname:~ #
    hostname:~ # iptables --list
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    DROP udp -- anywhere anywhere owner UID match specuser udp dpt:ntp
    hostname:~ #
    hostname:~ # /usr/sbin/iptables-save
    # Generated by iptables-save v1.4.2-rc1 on Tue Dec 18 20:10:53 2012
    *filter
    :INPUT ACCEPT [57148674:8162131162]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [35318506:186552967608]
    -A OUTPUT -p udp -m owner --uid-owner specuser -m udp --dport 123 -j DROP
    COMMIT
    # Completed on Tue Dec 18 20:10:53 2012
    hostname:~ #

    De nem teszteltem még!

    [ Szerkesztve ]

Új hozzászólás Aktív témák