# # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" "POT-Creation-Date: 2014-05-18 12:18-0600\n" "PO-Revision-Date: 2014-05-18 12:18-0600\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "SSH access to hosts on an internal network" msgstr "" #. Tag: para #, no-c-format msgid "On a private network, such as the NAT network used by most homes, a machine can be accessed using ssh by forwarding the incoming port 22 on the router to a single machine inside the network. To access more than one machine from outside the network, proxy requests through that host." msgstr "" #. Tag: para #, no-c-format msgid "This approach is more straightforward than forwarding multiple ports, because it only requires one forwarding rule to be configured, one change in the ssh client configuration for the outside machine, and no additional configuration on the other hosts." msgstr "" #. Tag: title #, no-c-format msgid "Required Ingredients" msgstr "" #. Tag: para #, no-c-format msgid "A port forwarding rule for one host on the internal network. Log in to your router to setup the rule. Because router interfaces vary, consult your router's manual for help." msgstr "" #. Tag: para #, no-c-format msgid "A target for the above port forwarding rule configured to accept ssh connections (default on most systems)." msgstr "" #. Tag: para #, no-c-format msgid "An internal network with other ssh accessible hosts." msgstr "" #. Tag: para #, no-c-format msgid "The outside address for your internal network. Home users with dynamically assigned IP addresses should read " msgstr "" #. Tag: para #, no-c-format msgid "The address space for your internal network. On many home routers, this will be 192.168.1.* or 192.168.0.1" msgstr "" #. Tag: title #, no-c-format msgid "Address Space Reuse" msgstr "" #. Tag: para #, no-c-format msgid "Adddresses like 192.168.1.0/24 are reserved for use in private networks. Because the proxy rule is applied based on the address space of the target, you should configure your router to use a less common set of addresses." msgstr "" #. Tag: para #, no-c-format msgid "If your router can give addresses in the 192.168.42.0/24 network, for example, your proxy rule won't get in the way when connecting to machines on a different network that uses 192.168.1.0/24 addresses." msgstr "" #. Tag: title #, no-c-format msgid "Directions" msgstr "" #. Tag: title #, no-c-format msgid "Configuring an ssh proxy" msgstr "" #. Tag: para #, no-c-format msgid "Configure your router to forward incoming traffic on port 22 to one machine that will act as the proxy. If you choose, configure the router to use a less common subnet then reboot it." msgstr "" #. Tag: para #, no-c-format msgid "Open the firewall on all machines to ssh traffic. This is the default on most systems. Use the graphical firewall application firewall-config, or issue the commands below as root." msgstr "" #. Tag: screen #, no-c-format msgid "\n" " firewall-cmd --permanent --add-service=ssh\n" " firewall-cmd --reload\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Ensure sshd is enabled and running on all target systems by running the commands below as root." msgstr "" #. Tag: screen #, no-c-format msgid "\n" " systemctl enable sshd\n" " systemctl start sshd\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Edit ~/.ssh/config on the initiating system as below:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" " Host 192.168.42.*\n" " ProxyCommand ssh -W %h:%p external_address\n" " #suggested optional ssh key declaratons:\n" " IdentityFile ~/.ssh/internal_id_rsa\n" " Host external_address\n" " IdentityFile ~/.ssh/proxy_id_rsa\n" " \n" " " msgstr "" #. Tag: para #, no-c-format msgid "Test the configuration from inside and outside the network. Using ssh verbosely will show how the ProxyCommand statement relays your connection." msgstr "" #. Tag: screen #, no-c-format msgid "\n" " ssh -vvv 192.168.42.7\n" " " msgstr "" #. Tag: title #, no-c-format msgid "References" msgstr "" #. Tag: para #, no-c-format msgid "ssh-config(5) - ssh client configuration manual." msgstr "" #. Tag: para #, no-c-format msgid "firewall-cmd(1) - manual for firewalld command line utility." msgstr "" #. Tag: para #, no-c-format msgid " - recommended reading on ssh authentication." msgstr "" #. Tag: para #, no-c-format msgid "RFC1918 - defines private address spaces." msgstr ""