PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Jun 26, 2019 8:07 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Dec 11, 2010 4:32 pm 
Offline
Forum Newbie

Joined: Thu May 27, 2010 8:20 am
Posts: 13
I am using OpenSUSE (latest). I have Apache2 on and I want to run a ftp server. I have configured Apache2 to allow incoming connections only from a particular IP which is on my home network (192.168.2.102). But it looks like it is more difficult to do this on the ftp server (pure-ftpd). So I want to ask if it is possible to configure my entire system to block remote access from ALL ip addresses except the one on my home network (specified above).

How to do that ?!


Top
 Profile  
 
PostPosted: Sat Dec 11, 2010 7:47 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
Use iptables to block 0.0.0.0/0 and only allow 192.168.0.102

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Sat Dec 11, 2010 8:42 pm 
Offline
Forum Newbie

Joined: Thu May 27, 2010 8:20 am
Posts: 13
Celauran wrote:
Use iptables to block 0.0.0.0/0 and only allow 192.168.0.102


Thanks for the compact info. I have looked into how to configure that thing (there is a file special for custom rules for the OPenSUSE firewall). The files specifies those iptables...

Of course, I need to learn more now about iptables. I guess I will need to define two lines there a. the one that blocks all and then b. the one that allows that particular ip.


Top
 Profile  
 
PostPosted: Sat Dec 11, 2010 10:27 pm 
Offline
Forum Newbie

Joined: Thu May 27, 2010 8:20 am
Posts: 13
Thanks. Mission accomplished! No further assistance is needed :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group