Displaying 1 result from an estimated 1 matches for "iptables_cmd".
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...ilable at http://www.gnu.org/copyleft/gpl.html.
-
-# provides static 'forward' and 'close' methods to forward a specified vm's vnc connections
-class VmVnc
-
- private
-
- # TODO no ruby/libiptc wrapper exists, when
- # it does replace iptables command w/ calls to it
- IPTABLES_CMD='/sbin/iptables '
-
- VNC_DEBUG = false
-
- def self.debug(msg)
- puts "\n" + msg + "\n" if VNC_DEBUG
- end
-
- def self.find_host_ip(hostname)
- # FIXME
- addrinfo = Socket::getaddrinfo(hostname, nil)
- unless addrinfo.size > 0
-...