Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-13-2006, 07:28 AM
|
#1
|
LQ Newbie
Registered: Mar 2005
Location: Moncton NB Canada
Distribution: Fedora
Posts: 15
Rep:
|
iptables question
I have built a nice iptables based firewall and am now trying to lock it down. My question is this:
I want to deny web access (which i have done successfully), but I would like to allow mapquest (fully functional), and grisoft (for downloading updates). I have looked and tried to allow the subdomains for these, but is there an easy rule(s) to enter that will allow this?
For example allow *.mapquest.com
Thanks all
Kevin
|
|
|
02-13-2006, 03:17 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Are you trying to allow this from inside or outside?
If you are trying to allow web access only to these two sites then you simple place rules to allow the connection into the output chain before the blanket rule that denies web access.
|
|
|
02-14-2006, 06:29 AM
|
#3
|
LQ Newbie
Registered: Mar 2005
Location: Moncton NB Canada
Distribution: Fedora
Posts: 15
Original Poster
Rep:
|
I am denying web access to certain pc's (going out) and I understand what you are telling me, but my question was what is the rule I use?
When I tell it to allow everything from mapquest, do I use *.mapquest.com or mapquest.com, can someone provide me qith a rule so I can see?
Thanks.
Kevin 
|
|
|
02-14-2006, 10:39 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Code:
iptables -I FORWARD -p TCP -i $LAN_IFACE -o $WAN_IFACE \
-d mapquest.com -j ACCEPT
BTW, i don't think it's a good idea to do domain filtering with iptables... i mean, i could be wrong, but i assume the IP would be resolved when the script is run and then the IP will be used from that point forward, in which case the filtering wouldn't work if mapquest.com changes the IP or if the client is redirected to a different IP than the one which was resolved when the script was run...
|
|
|
All times are GMT -5. The time now is 06:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|