7/7

20061?

  • Want to run as normal user; need to bind to port 261. Conflict.

  • Use NAT rules to fix things:

        #!/bin/sh
        iptables-restore <<EOF
        # Generated by iptables-save v1.3.3 on Wed Dec 28 11:09:40 2005
        *nat
        :PREROUTING ACCEPT [0:0]
        :POSTROUTING ACCEPT [5:298]
        :OUTPUT ACCEPT [5:298]
        :nat.1 - [0:0]
        -A PREROUTING -d 172.17.3.83 -p tcp -m tcp --dport 261 -j nat.1
        -A nat.1 -p tcp -j REDIRECT --to-ports 20061
        COMMIT
        # Completed on Wed Dec 28 11:09:40 2005
        EOF