[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Could you give an example iptables script? (Help... I want to learn this stuff)



Hello everybody,

I'm planning to use iptables as it seems it's powerfull and it will let me choose really what is allowed and what is not (because of p2p stuff etc. which allways keeps complaining - and out of curiosity)

However, I never used iptables before and it looks like it's got some learning curve :-P I found a great tutorial at http://iptables-tutorial.frozentux.net/iptables-tutorial.html .. I'm not going to try myself just like that as I'm afraid I might kill the internet connection like that, therefor I want to ask for some help.

These are the details:
I am connecting to the net by dhcp, with an assigned (dynamic) IP address. I want to be able to...
- surf the web
- email (using smtp-server to send, pop-server to receive)
- use ftp for uploads/downloads
- use ssh, only outgoing, I don't need to access this computer by ssh
- I sometimes use a chat prog called amsn
Did I forget something basic ?

If the script allready covers those... great! Then I'll just install and read through the entire doc afterwards... otherwise, can you post the lines I have to add?

I hope someone is so kind to post an example. I can't yet read the dhcp script to the details of what is accepted and what not, so...

Thanks for any help!
Merry Christmas :-)

Joris Huizer



Reply to: