Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 03-05-2007, 04:12 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
putty script

I know nothing of creating a simple script file. My question is I just want to create a simple clickable script that you can place on a users desktop of some sort to echo text into a putty window after it loggs into the bsd router via ssh.

For example my router by default allows outgoing on 443 and 80, but say a user on Windows computer B for instance would like 21 open to access a file server or such. I just want that user to be able to click an icon on their desktop which will execute a putty script which logs in via ssh on the openBSD router then executing a "pfctl -f /etc/ftp.conf" and then exits automatically..

;;;;then once the user is done with the specified port, be able to re-execute another script going back to the original setup with only 443 and 80 outgoing.

the conf's on the router are created already I just need to know how to write the actual login scripts for the windows box's to make life much easier.

Can anyone point me in the right direction, it would be much appreciated.
Old 03-05-2007, 04:36 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
gratefulhemp, you need someone to take on the responsibility for fw administrator for this type of thing.

I don't know of a safe way to implement what you're describing without giving that person a lot more power as a side-effect. (i.e. You can make them a sudoer to mess with fw rules, but that's a hell of a lot of power in of itself.)

Can you describe more the circumstances and business problem you're trying to solve? If you're comfortable opening port 21 for brief transfers, is there not a "safe" subnet you can add to the rules for access to that port?

Last edited by anomie; 03-05-2007 at 04:37 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
putty display loops on listing directories with many files, through expect script vineet.k Linux - General 5 03-13-2007 10:44 AM
putty micro_xii Linux - Newbie 4 10-27-2006 11:59 PM
Putty learner01 Linux - Newbie 5 08-09-2006 09:45 AM
Will script continue to run even after closing putty for remote access anjanesh Linux - Newbie 11 08-07-2006 04:05 AM
Re: Putty unixfreak Linux - Newbie 6 09-01-2004 12:42 PM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration