Skip to content

Instantly share code, notes, and snippets.

@gyribeiro
Last active September 18, 2016 10:45
Show Gist options
  • Save gyribeiro/7dfbe2947cb12b0ac7ed to your computer and use it in GitHub Desktop.
Save gyribeiro/7dfbe2947cb12b0ac7ed to your computer and use it in GitHub Desktop.
firewall setup

Configure mosh

Add a service in /etc/firewalld/services/mosh.xml:

<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>Mobile Shell (mosh)</short>
  <description>Mosh is a replacement for SSH.</description>
  <port protocol="udp" port="60000-61000"/>
</service>

List if service was recognized ("mosh" should appear in the list):

# firewall-cmd --permanent --get-services

Add mosh service in the default public zone (change "public" to the default zone of your installed system):

# firewall-cmd --permanent --zone=public --add-service=mosh
success

Restart firewall:

# firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment