Cannot save changes to iptables
Hi all,
I am trying to open the port 1935 on my Linux machine. This is my distribution Code:
Linux Server 2.6.18-194.8.1.v5PAE #1 SMP Thu Jul 15 02:01:47 EDT 2010 i686 i686 i386 GNU/Linux 1) Code:
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 1935 -j ACCEPT Code:
iptables-save Code:
iptables-restore The problem is it will not save the changes, so when I run the nmap command, it shows that port is still closed: Code:
|
Under heading number one (1) you have the command
Code:
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 1935 -j ACCEPT Code:
iptables -I INPUT -s 0/0 -d 0/0 -p tcp --dport 1935 -j ACCEPT Code:
nc -vv ip_of_local_machine port number (1935) |
Quote:
Thanks, I ran your input command followed by the nc command, but the nc didn't work: Code:
[root@servername~]# nc -vv 1935 |
run
Code:
telnet ipaddress 1935 or run your nmap command |
Quote:
Seems like it's still closed: Code:
[root@servername~]# nmap -sT -p 1935 localhost Edit- I'm connected via puTTy to a remote server. Just installed nc and tried running that command, but it didn't work: Code:
[root@servername~]# nc -vv -p 1935 |
can you please run telnet?
|
Quote:
Code:
[root@servername~]# telnet 1935 [root@servername~]# telnet localhost 1935 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused |
Watch out the errors in commands.
Format for nc command is Code:
nc -vv localhost 1935 Code:
telnet localhost 1935 |
Quote:
Code:
[root@servername~]# nc -vv localhost 1935 |
Wow! have to check firewall rules. If possible paste the output of
Code:
iptables -nvL |
Is any service is running on port 1935 now?
|
Quote:
Thanks, sure. Here's the output of that command: Code:
[root@servername~]# iptables -nvL |
Quote:
|
As for as I know firewall rules are ok. Is any service running on port 1935?. You can check it with
Code:
netstat -natup |
Quote:
|
All times are GMT -5. The time now is 12:10 AM. |