Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: blocking a port on a Wintel machine (OS dependent)

by rkrieger (Friar)
on Jan 28, 2007 at 14:26 UTC ( #596969=note: print w/replies, xml ) Need Help??

in reply to blocking a port on a Wintel machine

Granted, my answer has little to do with Perl. You may want to check whether your OS supports functionality similar to the following:

In OpenBSD, authpf(8) allows altering the firewall configuration for those people who enter the system via a special SSH session. I can heartily recommend reading the entire man page.

There are several reasons why I suggested the above feature:

  • You can interface it with distributed authentication mechanisms (LDAP, NIS, RADIUS, etc.);
  • It provides a single, secure interface to enter a password (SSH);
  • It does not harrass applications for passwords that they're possibly (likely?) not ready for.

I'm fairly sure Perl can cater to the list above. But since you have an OS already, you might as well use it. Unless, of course, you can integrate things more easily with Perl code you already have or use.

Personally, I think the WinXP built-in firewall isn't that bad. It suits most of my needs as an end user while being on the road. At any other location, I place client machines behind a firewall anyway. Just pick the platform you like best (for me, that's OpenBSD).

Where does Perl come into the picture? Well, it may be useful to generate the various firewall rules you're thinking of. At least, that what I'd use it for in this case.

  • Comment on Re: blocking a port on a Wintel machine (OS dependent)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596969]
[Corion]: Discipulus++ # profound insight
[Corion]: :-D
[Discipulus]: the very same topic was discussed in CB yesterday at lunch time
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-06-23 08:00 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (537 votes). Check out past polls.