maidei
July 23rd, 2008, 12:31 AM
Just install ubuntu sever 8.04.
-how to reverse this command or delete it
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT ??
i thought I was suppose open port 80 on ubuntu server 8.04, used the above command,
Since I notice that I didnt need to use the command.
Only need to install apache.
So can I reverse this command. If I leave it the way it is, will that be safe
Regards
Maidei
root@maidgal:/home/maidgal2# iptables -v -n -L
Chain INPUT (policy ACCEPT 14108 packets, 678K bytes)
pkts bytes target prot opt in out source destination
8 392 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:80
1 44 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:80
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 14017 packets, 595K bytes)
pkts bytes target prot opt in out source destination
root@maidgal:/home/maidgal2# sudo iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
-how to reverse this command or delete it
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT ??
i thought I was suppose open port 80 on ubuntu server 8.04, used the above command,
Since I notice that I didnt need to use the command.
Only need to install apache.
So can I reverse this command. If I leave it the way it is, will that be safe
Regards
Maidei
root@maidgal:/home/maidgal2# iptables -v -n -L
Chain INPUT (policy ACCEPT 14108 packets, 678K bytes)
pkts bytes target prot opt in out source destination
8 392 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:80
1 44 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:80
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 14017 packets, 595K bytes)
pkts bytes target prot opt in out source destination
root@maidgal:/home/maidgal2# sudo iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination