How can I execute an iptables script at login time?

Sambit Bikas Pal sambitbikaspal at gmail.com
Mon Oct 27 17:38:46 UTC 2008


Put the path to the iptables script in /etc/rc.local

For example if the script is in /home/user/iptables.sh
then add the line -
/home/user/iptables.sh
in /etc/rc.local


2008/10/27 Zoltán Horváth <horvathzoltanster at gmail.com>:
> Hello for all:
>
> I use Ubuntu 8.04. It is the first time when in my weak language
> knowledge I try create a question in English.
> I found an iptables-script in the Internet. When I ran it first time
> it missed a directory but I created it. Now I started it manually
> after every login, but now I would start it automatically at login
> time. If I googleit right, the file I need the /etc/profile. (Very
> strange for me, it has no execution right.) I created a directory for
> the firewall-script and for a log file in the /etc directory with name
> MyEtc. I modified the original iptables-script for needs of BOINC. I
> attach the two script with txt extension and changed all point to
> underline mark, because I don't want any calamity. From contents the
> log fie I recognize this solution not able to work.
> I know the mistake I take very general, but I now only this level
> about Linux. I am sure you have same idea which can help me. Or the
> solution.
>
> Thanks, Zoli
>
> P.S. The long ls of these two files:
> -rw-r--r-- 1 root root 608 2008-10-26 11:29 profile
> -rwx------ 1 root root 1395 2008-10-09 12:34 start-firewall.sh
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>



-- 
Sambit Bikas Pal
MS 3rd Year
Indian Institute Of Science Education & Research Kolkata,
HC 7, Sector-III Salt Lake, Kolkata-700106
Web:  http://www.botcyb.org
OpenPGP Key: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x8E57F8B897D372B3




More information about the ubuntu-users mailing list