LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-30-2004, 10:30 AM   #1
jpierre70
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
SSH to my Fedora Core 2 box - Allowing just one IP!!!


Hi!
I have a LINUX Fedora Core 2 box and i'd like to allow only one IP to access my LINUX. What is the best way?


Thanks,
jp


PS: I'm a newby!!!
 
Old 07-30-2004, 10:34 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
by using iptables (netfilter), the linux kernel's packet-state filtering firewall system...

if you post your current iptables script, someone can show you what you need to change...

basically, the rule to add would look something like this (when doing DROP on INPUT by default):

iptables -A INPUT -p TCP -s 192.168.0.1 --destination-port 22 -j ACCEPT

(replace 192.168.0.1 with the address you want to allow)


http://www.linuxguruz.com/iptables

http://firestarter.sourceforge.net

http://www.shorewall.net

http://www.netfilter.org


Last edited by win32sux; 07-30-2004 at 10:44 AM.
 
Old 07-30-2004, 11:09 AM   #3
jpierre70
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Hi!
Thanks for your answer. I currently don't have iptables (firewall) active. Where can i find that script?

Regards,
JP
 
Old 07-30-2004, 12:05 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
if you look at the first link i gave you you'll find tons of scripts...
 
Old 07-30-2004, 12:06 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
you might also like this web based script generator:

http://easyfwgen.morizot.net/gen/
 
  


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
allowing apache to talk to mysql on fedora core 3 with security enhancement enabled m3rajk Linux - Security 1 03-15-2005 06:13 PM
Fedora Core 3-WONT BOOT on win xp box axanico Fedora - Installation 3 11-21-2004 01:27 PM
problems jumpstarting Solaris from a fedora core 2 box coontie Linux - General 0 11-08-2004 11:26 PM
Fedora Linux allowing incoming SSH hwm Linux - Networking 5 09-06-2004 02:50 PM
Access Mandrake box from Fedora Core 1 box btexpress Linux - Networking 0 05-30-2004 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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