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.
Comments
Post a Comment