---
name: iodine
version: 0.6.0r1
origin: net/iodine
comment: Tunnel IPv4 data through a DNS server
arch: freebsd:9:x86:64
www: http://code.kryo.se/iodine/
maintainer: lx@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 153952
desc: |
  This is a piece of software that lets you tunnel IPv4 data through a DNS
  server. This can be usable in different situations where Internet access is
  firewalled, but DNS queries are allowed.

  WWW: http://code.kryo.se/iodine/
categories: [net]
files:
  /usr/local/bin/iodine: 417f626c82b3ae81404ada1b67b5de629d6c8889995a0c0abc7eb2ea52bdecc4
  /usr/local/etc/rc.d/iodined: 8f7aadc29ba4e9f19d22d76ac3e6cadd617dcddbd8ef15cc81690df7bd688892
  /usr/local/man/man8/iodine.8.gz: dd25702dd52ad1e7b72d1b5f8ff519b45f8fcd686268e2fa51d3baab3aa3b972
  /usr/local/man/man8/iodined.8.gz: '-'
  /usr/local/sbin/iodined: 11438f7d0d07f374de6b71d658cddb131a11461e5c97de2bce563591020fa2cc
  /usr/local/share/doc/iodine/CHANGELOG: 42122e389a1d2baef0b579dcfecd4c3a60955c35e1fe9656e1aca62ef19d60f8
  /usr/local/share/doc/iodine/README: a03ef1f97e2749218d697d64032a01441fbf8f20f564e03531359d47ef42bc24
  /usr/local/share/doc/iodine/TODO: 2dc997611ad4c7b111216c89f1a23e2e3cc88613cac4f357943ff237f1d57837
directories:
  /usr/local/share/doc/iodine/: n
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#!/bin/sh\n\ncase $2 in\nPOST-INSTALL)\n\tUSER=_iodined\n\tGROUP=${USER}\n\tUID=353\n\tGID=${UID}\n\tPW=/usr/sbin/pw\n\n\tif
    ${PW} group show \"${GROUP}\" 2>/dev/null; then\n\t\techo \"You already have a
    group \\\"${GROUP}\\\", so I will use it.\"\n\telse\n\t\tif ${PW} groupadd ${GROUP}
    -g ${GID}; then\n\t\t\techo \"Added group \\\"${GROUP}\\\".\"\n\t\telse\n\t\t\techo
    \"Adding group \\\"${GROUP}\\\" failed...\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\n\tif
    ${PW} user show \"${USER}\" 2>/dev/null; then\n\t\techo \"You already have a user
    \\\"${USER}\\\", so I will use it.\"\n\telse\n\t\tif ${PW} useradd ${USER} -u
    ${UID} -g ${GROUP} -h - \\\n\t\t\t-d \"/var/empty\" -s /sbin/nologin -c \"OSPF
    Daemon\"\n\t\tthen\n\t\t\techo \"Added user \\\"${USER}\\\".\"\n\t\telse\n\t\t\techo
    \"Adding user \\\"${USER}\\\" failed...\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\texit
    0\n\t;;\nesac\n"
  deinstall: "#!/bin/sh\n\ncase $2 in\nPOST-DEINSTALL)\n\tUSER=_iodined\n\tGROUP=${USER}\n\tPW=/usr/sbin/pw\n\n\tif
    ${PW} groupshow \"${GROUP}\" 2>/dev/null 1>&2; then\n\t\tif [ -z \"${PACKAGE_BUILDING}\"
    -a -z \"${BATCH}\" ]; then\n\t\t\techo \"To delete the ${USER} group permanently,
    use '${PW} groupdel ${GROUP}'.\"\n\t\telse\n\t\t\t${PW} groupdel ${USER}\n\t\tfi\n\tfi\n\n\tif
    ${PW} usershow \"${USER}\" 2>/dev/null 1>&2; then\n\t\tif [ -z \"${PACKAGE_BUILDING}\"
    -a -z \"${BATCH}\" ]; then\n\t\t\techo \"To delete the ${USER} user permanently,
    use '${PW} userdel ${USER}'.\"\n\t\telse\n\t\t\t${PW} userdel ${USER}\n\t\tfi\n\tfi\n\n\texit
    0\n\t;;\nesac\n"
message: "To start iodined at boot, put these lines to your rc.conf:\n\n  iodined_enable=\"YES\"\n
  \ iodined_password=\"Passw0rd\"         # tunnel password\n  iodined_domain=\"t.example.net\"
  \     # tunnel domain\n\nNote that the password is visible from process list. The
  default ip\non the tunnel interface is set to 172.16.0.1. You can change it with\nthe
  ``iodined_addr'' variable in rc.conf.\n\nYou need to delegate the tunnel domain
  for iodined use. Add things\nlike these to the DNS zone file:\n\n  iodined\tIN\tA\t192.0.2.1\n
  \ t\t\tIN\tNS\tiodined.example.net.\n\nReplace 192.0.2.1 with your server's (the
  one you run iodined) IP.\n\nTo run the client,\n\n  iodine -f -u _iodined -t /var/empty
  192.168.1.1 t.example.net\n\nReplace 192.168.1.1 with your DNS server.\n\nSee iodine(1)
  for more information.\n"
