LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-04-2012, 05:15 AM   #1
saranprasath91
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
Question how to block VPN access


how to block the vpn access using some softwares or codes in the server?

Last edited by saranprasath91; 02-04-2012 at 05:16 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-04-2012, 05:23 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
For anyone to be able to answer you we'd need way more information about your current set-up - operating systems, network arrangements etc.
 
Old 02-04-2012, 05:42 AM   #3
saranprasath91
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by klearview View Post
For anyone to be able to answer you we'd need way more information about your current set-up - operating systems, network arrangements etc.

I am doing my final year project and in my college we have access points every where and they have a Sonic firewall to block the social networking and other websites but my collegemates used to bypass the firewall through free VPN and anonymous tools.
So, i thought of doing a project to block the VPN access and other anonymous tools that allows the users to bypass the firewall.
 
Old 02-04-2012, 05:47 AM   #4
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
you can to this using iptables and block vpn ports.pretty easy!!!
 
Old 02-04-2012, 08:02 AM   #5
saranprasath91
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by devilboy09 View Post
you can to this using iptables and block vpn ports.pretty easy!!!
where to create the iptables and how to create it?
atleast please give some useful links to create a iptables.
 
Old 02-04-2012, 08:31 AM   #6
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
here's the commands that you should issue in shell(on firewall machine):
Code:
iptables -A FORWARD -s "internal-netrowk-ip-address" --dport 1723 -j DROP
iptables -A FORWARD -s "internal-network-ip-address" --dport 1701 -j DROP
and to save and restart iptables service, issue these command:
Code:
service iptables save
service iptables restart
 
Old 02-04-2012, 08:31 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by saranprasath91 View Post
where to create the iptables and how to create it?
atleast please give some useful links to create a iptables.
Is Google broken where you live???
http://www.yolinux.com/TUTORIALS/Lin...rkGateway.html
http://www.higherpass.com/linux/Tuto...tables-Primer/

You could also type in "man iptables", and read the info.
 
2 members found this post helpful.
  


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
Block access to VPN users spide21 Linux - Security 4 11-09-2008 02:37 AM
VPN pptpd connected vpn server only access need help please u4david Linux - Networking 1 10-17-2008 03:54 PM
How to make non-vpn machines to access VPN server deepugopi Linux - Networking 0 07-31-2007 06:55 AM
Block VPN access with IPChains ssukumar Linux - Newbie 1 10-03-2003 12:00 PM
Block VPN access with IPChains ssukumar Linux - Networking 0 10-03-2003 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:48 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
Open Source Consulting | Domain Registration