LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2009, 07:17 AM   #1
Pengoo
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Rep: Reputation: 0
only allow certain ip's


Ive got a debian server setup and using the proxy tunnel option of putty.

Alls working 100%, however, how can i block or only allow certain websites/ips without blocking the server itself?

Or

Blocking/allowing based in usergroup

Thanx!

Last edited by Pengoo; 06-04-2009 at 07:24 AM. Reason: Added extra thoughts
 
Old 06-04-2009, 09:37 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
man iptables for details on filtering based on uid/gid
 
Old 06-04-2009, 10:18 AM   #3
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
Also look into tcp-wrappers

/etc/hosts.allow & /etc/hosts.deny
 
Old 06-04-2009, 03:17 PM   #4
Pengoo
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Ive created a group called sllusers (GID = 102)
and a user (trial) which belongs to this group

Putty socks5 tunnel

Now logging into the server, they have FULL access.

So ... i assume using iptables and the gid i can start allowing access to ip ranges and ports.

iptables -A OUTPUT -p tcp --dport 3128 --gid-owner 102

But it doesnt work ...

iptables v1.3.6: Unknown arg `--gid-owner'

Any ideas?
 
Old 06-04-2009, 04:33 PM   #5
Pengoo
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Got it working !!!

tnks for direction
 
  


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
Forwarding ip's icedude Linux - Networking 3 02-16-2006 12:35 AM
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 12:23 PM
multipls IP's bhughesiii Linux - Networking 1 12-20-2004 11:03 AM
More ip's ThePlague Linux - Networking 1 02-02-2002 04:19 PM
ip's Syphon Linux - Networking 1 01-18-2002 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 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