I'm a newbie at Centos. I need to open a few ports in Centos.
I've googled it a little bit, and found something like this.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT
But it gives the following error when i try to restart iptables
iptables: Applying firewall rules: iptables-restore: line 13 failed
How can I open ports in Centos 6
Hi could could anyone help me understand why line 15 is failing supposedly in my iptables file.
I noticed this morning the iptables firewall was not starting due to the fact that I rebuilt the kernel and forgot to include the relevent Netfilter modules. So I added those and rebooted. The firewall still fails, but rather that referring to the non-available ip_tables module, it now just says iptables.init[1290]: iptables: Applying firewall rules: iptables-restore: line 13 failed.
Possible Duplicate:
iptables: forward port 80 to port 8080
I'd like to forward port 80 to 8080.
So I tried to edit /etc/syscongfig/iptables:
-A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
But got:
# service iptables restart
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK
I installed Webmin (based on Installing the RPM) for CentOS 6.3 running on virtual box. The package was installed successfully but when I open home.centos:10000 it doesn't open up. My internet is fine. I have opened ports of iptables but not working.
Also tried as given on Webmin website and did iptables file entries for firewall but still not opening up via my web browser.
I want to configure remote desktop TigerVNC following the guide:
setting up vncserver on Fedora 16 | zeusville
the author said:
Code:
lets update iptables:
sudo vi /etc/sysconfig/iptables
Add this to the file:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5903 -j ACCEPT
Save the file, then restart iptables and verify that the port is active.
sudo systemctl restart i
I have inherited a custom built Linux kernel 2.6.30.9 and am just upgrading the underlying OS from RHEL 5.4 to 5.8 (kernels 2.6.18.164 and 2.6.18.308 respectively).
When booting, the following is displayed:
unloading iptables modules [ OK ]
Applying iptables firewall rules: modprobe: FATAL: module ip-tables not found.
iptables-restore v1.3.5: iptables-restore unable to init
I'm trying to open up port 8080 on my CentOS 5, Apache 2.2.3 server. When I go to ip:8080/mydirectory - it times out.
I'm trying to open up port 8080 on my CentOS 5, Apache 2.2.3 server. When I go to ip:8080/mydirectory - it times out.