Skip to content

Commit

Permalink
Improve vagrant provisioning
Browse files Browse the repository at this point in the history
Installs net-tools (for ifconfig)
  • Loading branch information
danfruehauf committed Nov 14, 2016
1 parent cb37c2e commit d50f540
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/nm-ssh-server.sh
Expand Up @@ -5,6 +5,11 @@ _get_external_interface() {
ip route get 1.1.1.1 | head -1 | cut -d' ' -f5
}

# install ifconfig
install_ifconfig() {
yum install -y net-tools
}

# permit tunnel on server
permit_tunnel() {
echo 'PermitTunnel=yes' >> /etc/ssh/sshd_config
Expand All @@ -30,8 +35,9 @@ firewall_rules() {

# main
main() {
permit_tunnel
kernel_forwarding
install_ifconfig && \
permit_tunnel && \
kernel_forwarding && \
firewall_rules
}

Expand Down

0 comments on commit d50f540

Please sign in to comment.