How to forward TCP/UDP ports in Debian 7 (64BIT)? -


i have friend using ovh vps (debian 7, 64 bits) , want open tcp , udp ports dont know why. try access got timed_out, think firewall blocking connection. tried on different computers same issue. vps firewall? please command forward ports or add firewall exception in debian 7. thanks.

welcome wonderful world of iptables
information interested in surrounds iptables package, default firewall logic number of linux distributions.

to answer question simply, following should permit traffic through port 80 "anywhere", example. modify see fit, , see basic port opening requirements met.

sudo iptables -a input -p tcp --dport 80 -j accept 

similarly, if needed open udp port 9987 (default teamspeak), command this.

sudo iptables -a input -p udp --dport 9987 -j accept 

lastly, iptables configuration commands saved in memory. "commit" changes persist reboot, must save them.

sudo service iptables save  

here additional trustworthy resources on iptables educational pleasure.

  1. https://wiki.debian.org/iptables
  2. http://ubuntuforums.org/showthread.php?t=159661
  3. https://wiki.centos.org/howtos/network/iptables

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -