LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-18-2004, 12:10 PM   #1
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
IPFW rules for blocking ftp ?????


Running freebsd 5.2.1

ok if you read any of my other posts I have a apache server running and I have it set up so that a user "webmaster" can ftp new files into the intranet website,

but now I got bored so I want to set up my IP firewall to block all ip addresses on my network except like 1 or 2 . this is what i have in my config file for my firewall and i dont know what to change since I have never done this before and I am just going on the trial and error approach adding stuff that makes sense to me but prolly wrong

firewall file=
add allow all from 10.1.2.36 to any (person I want to have access)
add deny all from 10.1.0.0/21 to localhost/21 (block everything else ftp to my machine)
add 6500 allow all from any to any (let normal internet and other service traffic through)


any help will be greatly appreaciated
 
Old 06-22-2004, 09:45 AM   #2
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Original Poster
Rep: Reputation: 30
for anyone interested I think I got it working
add allow all from 10.1.2.36 to me
add deny all from any to me 21
add 6500 allow all from any to any
 
  


Reply



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
IPTABLES rules for active FTP TruckStuff Linux - Security 7 04-22-2009 06:21 PM
Help w/ FTP and SSH rules Charles Daniel Linux - Security 1 10-18-2005 09:58 PM
IPFW rules ryancoolest *BSD 5 02-19-2004 01:03 AM
Blocking rules noobian Linux - Security 1 10-14-2003 10:52 PM
Ipfw advances stateful rules and natd J_Szucs Linux - Networking 0 05-05-2003 01:41 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration