Yannis Tsopokis web site

Let the programmers be many and the managers few -- then all will be productive....


Firewall configuration - iptables simple rules

How to create a custom script for enabling iptables firewall under Linux

Click here for the Εnglish version of this document.

Οι παρακάτω οδηγίες είναι για όσους θέλουν να έχουν ένα απλό firewall σε Debian/Ubuntu. Χρησιμοποιεί iptables. Εάν θέλετε γραφικό περιβάλλον προτιμήστε το gufw.
Αυτές οι οδηγίες έχουν δοκιμαστεί σε Debian unstable & Ubuntu. Δειτε το script

  1. Εγκαθιστούμε το iptables (συνήθως είναι ήδη εγκατεστημένο)
  2. $ sudo apt-get install iptables

  3. Αφού κατεβάσουμε το αρχείο το αντιγράφουμε στον κατάλογο /etc/init.d/
  4. $ wget http://tsopokis.gr/utilities/firewall/firewall -O /tmp/firewall

    $ sudo cp /tmp/firewall /etc/init.d/


  5. Μετά κάνουμε το αρχείο εκτελέσιμο.
  6. $ sudo chmod +x /etc/init.d/firewall

  7. Ενεργοποιούμε την αυτόματη εκκίνηση του firewall
  8. $ sudo update-rc.d firewall start 57 2 3 4 5 . stop 57 0 1 6 .

  9. Ξεκινάμε το firewall
  10. $ sudo /etc/init.d/firewall start


Πλέον έχουμε το firewall σε λειτουργία!!

:: Σχετικοί σύνδεσμοι

Netfilter/iptables project