LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 03-05-2007, 03:12 PM   #1
gratefulhemp
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, 03:36 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
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 03:37 PM.
 
  


Reply


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 09:44 AM
putty micro_xii Linux - Newbie 4 10-27-2006 10:59 PM
Putty learner01 Linux - Newbie 5 08-09-2006 08:45 AM
Will script continue to run even after closing putty for remote access anjanesh Linux - Newbie 11 08-07-2006 03:05 AM
Re: Putty unixfreak Linux - Newbie 6 09-01-2004 11:42 AM


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

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