Brindle7211
July 3rd, 2009, 11:45 PM
Hi guys I've been a big fan of Ubuntu for a while but now I have reached a point where the help my friends can offer me is no longer adequate so I am going to "hit the forums"
Now, as the title states I'm working on my first Ubuntu Server edition. At this time my server is the acting router for my home network configured as such through iptables, I use a samba share to backup my movies and music too and I have SSH running on it so I can tunnel while on my work's restricted network.
Eventually I plan to host 3-4 businesses websites off of my server which is why I am now turning to the folks here.
First Issue: I'm running 9.04 right now and am considering reinstalling with 8.04 LTS as it has 6 months more of updates. However I am attracted to the feature in 9.04 that offers cloud computing. Correct me if I'm wrong but in simple terms wouldn't this mean I could just build another server and start a small cloud instead of having to rebuild or upgrade the current server?
Second Issue: I'm trying to add rules to iptables > filter > input so I can "secure" my server and thus my local network as well. After reading online and developing an intermediate working knowledge of iptables I decided to block port 80 on my server with this command: sudo iptables -I INPUT -i eth0 -p tcp -m tcp --dport 80 -j DROP. However it doesn't work but when I check the current ruleset with sudo iptables -t filter --line-numbers -n -L I see what seems to be a rule that drops port 80 from any interface.
Included is the output of: sudo iptables -t filter --line-numbers -n -L
*note*(rule 1 in the forward chain is the port forward for uTorrent running on a separate PC in my home)*/note*
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
2 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
4 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:67
5 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:67
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 192.168.1.* tcp dpt:*****
2 ACCEPT all -- 0.0.0.0/0 192.168.122.0/24 state RELATED,ESTABLISHED
3 ACCEPT all -- 192.168.122.0/24 0.0.0.0/0
4 ACCEPT all -- 192.168.1.0/24 0.0.0.0/0
5 ACCEPT all -- 0.0.0.0/0 192.168.1.0/24 state RELATED,ESTABLISHED
6 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
7 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
8 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
Third Issue: Well this is more of a question is a program like webmin or ISPConfig a good idea as they seem to take the quesswork and learning curve out of server administration. I personally would like to not have to rely on a web gui as I feel that it's another program that could be exploited by those with "unfriendly" desires.
I know this is a lot and I certainly do appreciate and thank anyone who can offer any assistance in advance.
Now, as the title states I'm working on my first Ubuntu Server edition. At this time my server is the acting router for my home network configured as such through iptables, I use a samba share to backup my movies and music too and I have SSH running on it so I can tunnel while on my work's restricted network.
Eventually I plan to host 3-4 businesses websites off of my server which is why I am now turning to the folks here.
First Issue: I'm running 9.04 right now and am considering reinstalling with 8.04 LTS as it has 6 months more of updates. However I am attracted to the feature in 9.04 that offers cloud computing. Correct me if I'm wrong but in simple terms wouldn't this mean I could just build another server and start a small cloud instead of having to rebuild or upgrade the current server?
Second Issue: I'm trying to add rules to iptables > filter > input so I can "secure" my server and thus my local network as well. After reading online and developing an intermediate working knowledge of iptables I decided to block port 80 on my server with this command: sudo iptables -I INPUT -i eth0 -p tcp -m tcp --dport 80 -j DROP. However it doesn't work but when I check the current ruleset with sudo iptables -t filter --line-numbers -n -L I see what seems to be a rule that drops port 80 from any interface.
Included is the output of: sudo iptables -t filter --line-numbers -n -L
*note*(rule 1 in the forward chain is the port forward for uTorrent running on a separate PC in my home)*/note*
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
2 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
4 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:67
5 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:67
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 192.168.1.* tcp dpt:*****
2 ACCEPT all -- 0.0.0.0/0 192.168.122.0/24 state RELATED,ESTABLISHED
3 ACCEPT all -- 192.168.122.0/24 0.0.0.0/0
4 ACCEPT all -- 192.168.1.0/24 0.0.0.0/0
5 ACCEPT all -- 0.0.0.0/0 192.168.1.0/24 state RELATED,ESTABLISHED
6 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
7 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
8 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
Third Issue: Well this is more of a question is a program like webmin or ISPConfig a good idea as they seem to take the quesswork and learning curve out of server administration. I personally would like to not have to rely on a web gui as I feel that it's another program that could be exploited by those with "unfriendly" desires.
I know this is a lot and I certainly do appreciate and thank anyone who can offer any assistance in advance.