![]() |
|
Iptables - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep2 Support (https://lckb.dev/forum/forumdisplay.php?fid=166) +------ Forum: Solved Topics (https://lckb.dev/forum/forumdisplay.php?fid=144) +------ Thread: Iptables (/showthread.php?tid=1690) |
- Mr.Speedy - 03-18-2013 Hey everyone, I have a question about the iptables. I want to add the loginserver port to my iptables but idk how. And i dont want stop my iptables. Does anyone knows how i can accept my port from the loginserver ?- HateMe - 03-18-2013 ... here a 2 if this not helped look at /etc/sysconfig/iptables file it can look for example like this: # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 25 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 4102 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 4102 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 4001 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 4001 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT - Mr.Speedy - 03-18-2013 service iptables start iptables: Applying firewall rules: iptables-restore v1.4.7: no command specified Error occurred at line: 34 Try `iptables-restore -h or iptables-restore --help for more information. [FAILED] this is my iptable: # Generated by iptables-save v1.4.7 on Sun Feb 10 22:33:18 2013 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [197:41234] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT # Completed on Sun Feb 10 22:33:18 2013 # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 25 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 4102 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 4102 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 4001 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 4001 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT - Ph3NoM - 03-18-2013 use this command easy : service iptables stop. - Mr.Speedy - 03-18-2013 No No. Id wanna stop my iptables. -.- - Mr.Speedy - 03-19-2013 fixed. - LikeToMove - 03-20-2013 Tell us the solution please, so other members can understand how to fix their problems ![]() |