LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-28-2004, 02:58 AM   #1
fragger
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Rep: Reputation: 0
pptp users


hi
i've set up pptd, everything works fine, but..
how can i limit a certain user/pass to be used (to work) only on a certain computer client? is there a solution with iptables and mac fitering? cuze i couldnt get it worked.
i dont want accounts to pe passed along in the network


thanks
 
Old 07-28-2004, 03:19 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
use this rule
iptables -A FORWARD -i <internal nic> -m mac --mac-source xx:xx:xx:xx:xx:xx -j REJECT
 
Old 07-28-2004, 06:39 AM   #3
fragger
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
if i do:

iptables -P FORWARD DROP
iptables -A FORWARD -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s ip1 -m mac --mac-source ... - j ACCEPT

the client with ip1 cant get internet acces
but with

iptables -P FORWARD DROP
iptables -A FORWARD -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s ip1 - j ACCEPT

it does..i dont know why mac filtering doesnt work...the module ipt_mac is loaded

any ideea why?

thanks
 
Old 07-28-2004, 07:15 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
just a small change ... check if this works

iptables -P FORWARD DROP
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -m mac --mac-source ... - j ACCEPT
 
  


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
Help with Evolution and PPTP linuxRunner Linux - Software 1 09-19-2005 04:56 AM
PPTP Not Connecting muppetmaster Linux - Networking 3 01-04-2005 03:37 AM
Pptp Question! buboleck Linux - Networking 0 10-13-2004 01:11 PM
pptp under kernel 2.6.5 PapaSchlumpf Linux - Software 1 06-04-2004 09:20 AM
pptp client KeithKessler Linux - Networking 0 05-04-2003 10:22 PM


All times are GMT -5. The time now is 03:15 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration