• Avery Pennarun's avatar
    iptables: try launching with sudo, then su, then directly. · 2c2bea80
    Avery Pennarun authored
    Previous versions depended on having 'sudo' in your PATH.  Now that we can
    feel safe that --iptables will clean up properly when you exit, and it
    doesn't need to authenticate twice, the advantages of sudo aren't strictly
    needed.  Good old 'su' is a reasonable fallback - and everybody has it,
    which is nice.
    
    Unfortunately su doesn't let you redirect stdin, so I had to play a stupid
    fd trick to make it work.
    2c2bea80
iptables.py 3.27 KB