Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    2

    Default Need help with crontab

    I would like to add this script and I don`t know how to do it, I don`t know how it`s correct.

    0,15,30,45 * * * /sbin/iptables nat -A POSTROUTING -o eth1 -j MASQUERADE
    0,15,30,45 * * * /bin/echo 1 > /proc/sys/net/ipv4/ip_forward
    0,15,30,45 * * * /sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE

    Tnx.

  2. #2
    Senior Member torrin's Avatar
    Join Date
    May 2003
    Location
    Vista, CA
    Posts
    534

    Default

    I'm making the assumption that you are talking about doing this on a westhost vps account.

    To add it, you need to login to your account using telnet or ssh, then execute the command editcron -e. This will bring up an editor where you can add the commands you mentioned. Then you just save and exit.

    One problem though. I don't think we have access to iptables on our vps. So line 1 and line 3 probably will not work. I'm not sure if we have access to make the change for line 2. You'll have to test it.
    Last edited by torrin; 08-24-2006 at 08:34 AM.

  3. #3
    Junior Member
    Join Date
    Aug 2006
    Posts
    2

    Default

    Well, than u can help me to create a script on booting with this commands? I use this commands to share internet connection.

  4. #4
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    Does this have anything to do with an account at WestHost? Shareing an internet connection normally is something you do locally on your computer.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

Similar Threads

  1. pipe not allowed in crontab?
    By dhobbs in forum General Discussion
    Replies: 3
    Last Post: 05-04-2007, 01:46 PM
  2. Crontab Conundrum
    By richardz in forum CGI Scripts / Perl
    Replies: 4
    Last Post: 03-06-2005, 11:52 AM
  3. Installing a Crontab
    By dpfaigin in forum General Discussion
    Replies: 23
    Last Post: 05-12-2004, 04:19 PM
  4. Crontab not working
    By lukegt in forum General Discussion
    Replies: 6
    Last Post: 12-22-2003, 07:25 PM
  5. Need help with crontab
    By jreeder in forum General Discussion
    Replies: 4
    Last Post: 09-14-2003, 07:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •