Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore ListLoad ListLoad Str Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str NameLoad Str Str ListLoad Str Str Str Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str NameLoad Str Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad ListLoad Str Str ListLoad Str Str Str Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call NameLoad NameLoad NameLoad TryFinally body Expr Yield finalbody Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad TryFinally body If NameLoad body With Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad body Expr Yield NameLoad orelse Expr Yield NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list NameLoad
N/A teleport Teleport N/A logging contextlib contextmanager subprocess check_call _run_commands N/A N/A commands N/A N/A N/A command commands N/A N/A N/A N/A logging debug running command '%s' N/A N/A join command N/A N/A check_call command N/A allow_traffic_only_to N/A N/A address dns_servers N/A None N/A N/A host N/A N/A N/A address split : N/A 0 N/A N/A N/A logging info Allowing traffic only to %s on eth0 host N/A commands N/A N/A iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT N/A iptables -A OUTPUT -o tun0 -j ACCEPT N/A iptables -A OUTPUT -o lo -j ACCEPT N/A iptables -A OUTPUT -o eth0 -d host -j ACCEPT N/A iptables -P OUTPUT DROP N/A N/A dns_servers None N/A N/A N/A N/A logging info Allowing traffic to dns servers %s dns_servers N/A dns_server dns_servers N/A N/A N/A N/A commands append N/A iptables -A OUTPUT -o eth0 -d dns_server -j ACCEPT N/A N/A _run_commands commands N/A reset_firewall N/A N/A N/A N/A N/A N/A N/A logging info resetting firewall N/A commands N/A N/A iptables -F N/A iptables -P OUTPUT ACCEPT N/A N/A _run_commands commands N/A FirewallContext N/A N/A address dns_servers N/A None N/A N/A N/A allow_traffic_only_to address dns_servers N/A N/A N/A N/A N/A N/A N/A reset_firewall N/A contextmanager Teleporter N/A N/A config place with_firewall dns_servers N/A True None N/A N/A t N/A N/A N/A Teleport config goto place N/A N/A N/A with_firewall N/A N/A N/A FirewallContext N/A N/A t get_peer_address dns_servers dns_servers N/A N/A N/A t N/A N/A N/A t N/A N/A N/A N/A t go_home N/A contextmanager