LinuxQuestions.org
Help answer threads with 0 replies.
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 04-08-2007, 11:34 PM   #1
ScarEye
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
LAN To VLAN Deny Requests


Hey guys what's up, I had a quick question, and I a praying someone here can help me out. Basically I have a router configured like this.


LAN = 192.168.1.1
VLAN2 - 172.16.1.1


Now any machines behind LAN can get to LAN & VLAN2 and vise versa I would like to stop this from happening. I am running iptables, and I just don't know how I would stop this from happening.


Any comments, suggestions, help would be greatly appreciated.



Thanks
ScarEye
 
Old 04-09-2007, 06:35 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
There is 2 ways you can do this. Turn ip forwarding off in the kernel, this will stop any data from travelling between the 2 interfaces.

At the command line type:

Code:
echo "0" > /proc/sys/net/ipv4/ip_forward
Or you could use iptables rules and set default FORWARD policy to drop:

Code:
iptables -P FORWARD DROP
 
  


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
How to deny requests to server's IP ferdinand2 Linux - Security 1 12-31-2006 05:18 PM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM
deny ssh access from lan with iptables NuLLiFiEd Linux - Security 10 12-01-2005 07:11 PM
how to configured squid to deny LAN client using wingate glenne Linux - Networking 2 06-29-2004 02:35 PM
deny LAN machines a particular domain epeus Linux - Networking 3 11-22-2002 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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