Hello my fellow Linux users!
Here's some quick qustions(I have tried both google and this forum, but I havent
been able to find the solution to my problems).
1. Iptables.
I'm trying to learn how to use iptables, so decided to write a very simple firewall script on my own.
Here's what I have done so far:
Code:
#!/bin/sh
# Setting Policy for chains...
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
# Loading userspesified rules...
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -lo -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 53 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
When I use this script, I can't surf on the WWW,eventhough my port 80(HTTP) and 53 (DNS) are wide open! I can't even ping, but I have allowed icmp traffic as you can see in my script. Can someone tell me whats wrong with this script?
2. NTFS Partition.
When I installed Slackware, I decided to mount my two NTFS partitions into my Linux system at boot.
That works pretty good for root, but I haven't found any way to give normal users read rights(chmod o+r).
This is a cut of my fstab:
/dev/hda5 /mnt/Windisk1 ntfs defaults 1 0
/dev/hda7 /mnt/Windisk2 ntfs defaults 1 0
Anyone?
Thanx