Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 25 Jun 2012 13:08:48 +0400
From: gremlin@...mlin.ru
To: owl-dev@...ts.openwall.com
Subject: /etc/init.d/vz & network settings

% grep -A2 -B3 fe80: /etc/init.d/vz
        if [ "${IPV6}" = "yes" ]; then
                __echo "Configuring ipv6 $VZDEV: "
                # Fix me: ip addres should be generated
                ip -6 addr add fe80::1/128 dev $VZDEV
                print_result
        fi

Obvious solution:
-                ip -6 addr add fe80::1/128 dev $VZDEV
+                ip -6 addr add "fe80:`head -c8 /dev/urandom | od -An -tx2 | sed -re 's, ,:,g'`/128" dev $VZDEV

Also:
-        ip addr add 0.0.0.0/0 dev $VZDEV


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin
<gremlin  gremlin  ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://subkeys.pgp.net
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

[ CONTENT OF TYPE application/pgp-signature SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ