Skip to content

Instantly share code, notes, and snippets.

@lemenkov
Created November 11, 2013 14:56
Show Gist options
  • Save lemenkov/7414348 to your computer and use it in GitHub Desktop.
Save lemenkov/7414348 to your computer and use it in GitHub Desktop.
Enable Avahi within VM on RHEL6
#!/bin/bash
# Accept 5353 traffic
iptables -I INPUT -p udp --sport 5353 -j ACCEPT
# Fix erroneous port translation
iptables -t nat -I POSTROUTING 1 -m udp -p udp --sport 5353 --dport 5353 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment