LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-10-2009, 07:24 AM   #1
Net_Spy
Member
 
Registered: Nov 2006
Posts: 119

Rep: Reputation: 17
issue with layer 7 filter


Greetings to All,

Guys I just configured an other machine-1 (gateway) for layer 7 filer that will handle sip , h323 , rtp requestt It has two inter faces one is wan and other is for out ( lan )with that lan I connect connect an other machine-2 (proxy) with cross cable that machine have lan interface for my local area network and cross cable connected interface will become wan for this machine.

I set the rule on forwad chain like below rule

Code:
$IPTABLES -t mangle   -A FORWARD -i eth0 -m layer7 --l7proto skypeout -j DROP
eth0 is the interface of machine-1 gateway and I set the rule there , I only enabled teh forwarding on that machine.


Now the problem Im facing is that I can not sign in hotmail , yahoo messenger and such other sites , on machine-2 Ive NAT enabled . Looking forward for your kind response


Regards
Net_Spy
 
Old 04-10-2009, 03:40 PM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

does your net look something like this?

Code:
internet --- machine1 --- machine2 --- LAN?
and, what do you mean by this?
Quote:
eth0 is the interface of machine-1 gateway and I set the rule there , I only enabled teh forwarding on that machine.

Now the problem Im facing is that I can not sign in hotmail , yahoo messenger and such other sites , on machine-2 Ive NAT enabled
so, did you create NAT on the machine2 instead of on machine1?
you just can not do that unless your machine1 (both interface WAN & to_machine2) using valid public IPs, and as well as on machine2 to_machine1 interface.

so, put that NAT-MASQUERADE on machine1 and use route to forward traffic from machine1 to LAN, or you can double NAT on machine1 and 2.


HTH.

Last edited by rossonieri#1; 04-10-2009 at 03:42 PM.
 
  


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
What DVD recorders/writers burn dual-layer/double-layer DVD's under Linux? bgoodr Linux - Hardware 5 02-06-2008 03:30 AM
simple way to make k9copy shrink dual layer to single layer DVD replica9000 Linux - Software 2 12-06-2007 02:41 PM
Email filter issue the_gripmaster Linux - Server 0 11-27-2007 01:58 AM
Application Layer Packet Classifier for Linux (l7-filter) stomach Linux - Software 1 09-10-2005 01:04 AM
Dual layer DVD +/- rw drive issue sigh_ren Linux - Newbie 1 06-15-2005 09:50 PM

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

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