Results 1 to 5 of 5
Hi Friends,
We are using Centos 6, in our system two Ethernet Cards are used one for LAN Access and another one for WAN internet.
We are used for Appache ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-22-2011 #1Just Joined!
- Join Date
- Dec 2011
- Posts
- 7
Urgent Help: Need to Restrict Ftp on WAN Allow only on LAN
Hi Friends,
We are using Centos 6, in our system two Ethernet Cards are used one for LAN Access and another one for WAN internet.
We are used for Appache server, for showing demo site to clients.
So I need to give Restrict permission for the following.
1. Restrict FTP access on internet WAN. Only LAN users can use FTP.
2. In internet users (client) can only view Http site. Ftp should restricted on internet.
Please anyone Help me. Its very Urgent.
- 12-22-2011 #2
The easiest solution is to configure, on which interfaces the http/ftp daemons listen.
In apache, this is how it´s done:
mpm_common - Apache HTTP ServerYou must always face the curtain with a bow.
- 12-23-2011 #3Just Joined!
- Join Date
- Sep 2007
- Location
- Silver Spring, MD
- Posts
- 84
Restrict access to the ftp and websites
=========================================
This is Tdsan, you might want to try this.
ex - 10.10.10.0/24 - Please use your own ip subnet address
Use this code to address the ftp issue
Use this code to address the html issue, allows users from the internet to connect to the server from external connect (i.e. 192.168.1.10 - web server)Code:iptables -I INPUT 1 -p tcp -s 10.10.10.0/24 -m multiport --dport 21 -m state --state NEW -i eth0 -j ACCEPT
Code:iptables -I INPUT 2 -p tcp -d 192.168.1.10 -m multiport --dport 80 -m state --state NEW -i eth1 -j ACCEPT iptables -I INPUT 3 -p tcp -d 192.168.1.0/24 -m multiport 21 -i eth1 -j DROP
- 12-23-2011 #4Just Joined!
- Join Date
- Dec 2010
- Posts
- 13
#This will block ACCESS TO FTP FROM OUTSIDE WORLD
iptables -I INPUT -i <WAN-Interface-name> -p tcp --dport 20 -j DROP
iptables -I INPUT -i <WAN-Interface-name> -p tcp --dport 21 -j DROP
# TO ALLOW ONLY WEB ACCESS FROM OUTSIDE WORLD
iptables -I INPUT -i <WAN-Interface-name> -p tcp --dport 80 -j ACCEPT
- 07-11-2012 #5Just Joined!
- Join Date
- Dec 2011
- Posts
- 7
Thanks for the replies.
________________________________________
thekavirajan.blogspot.com


Reply With Quote

