LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2010, 04:39 PM   #1
Azureon2
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
VPN Connection Only for Certain Users


Is it possible to configure a system such that a certain non-privileged user can only access the net through a VPN? I have an ethernet connection eth0 and a VPN network connection ppp0, and I'd like for the non-privileged user to be able to use networking through ppp0 but not eth0. It's easy enough to block the user from using eth0, telling iptables:

iptables -A OUTPUT -o eth0 -m owner --uid-owner [nonprivileged-username] -j REJECT

However, while that blocks the user from sending outbound traffic from eth0, I can't configure the user to use ppp0 instead. This user can't modify the routing table, since it is a nonprivileged user, and I'd prefer not to have to make global modifications to the routing table anyway since other users on the system still need to use eth0.

Thanks!
 
  


Reply



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
VPN setup for Remote users romad Linux - Security 3 08-02-2009 03:34 PM
monitoring vpn users kariya Linux - Newbie 1 06-24-2009 09:27 PM
Block access to VPN users spide21 Linux - Security 4 11-09-2008 02:37 AM
Enabling FTP for VPN Users? your_shadow03 Linux - Server 1 08-23-2008 11:59 AM
VPN - is there a way to use VPN & normal connection at the same time? natv Linux - Networking 4 09-05-2007 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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