LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 09-26-2007, 10:24 AM   #1
sleepylight
LQ Newbie
 
Registered: Apr 2004
Location: Joppa
Posts: 29

Rep: Reputation: 16
tricky firewall problem


Hi,

I have a odd problem, and I want to know if I can solve this with firewalls. (I've done it before using vlans, but I only have a dumb switch right now) I have a series of distributed programs that normally communicate by broadcasting UDP packets. Normally the software talks across multiple hosts, but I want to run it on different machines, allowing the local hosts to see the traffic without broadcasting between different machines.

For example, lets assume I have two computers, c1 and c2 as well as two programs appA and appB. Normally I would run appA on c1 and appB on c2. Both applications broadcast traffic, and both computers receive that traffic.

What I want is to run appA and appB on c1, as well as appA and appB on c2. I want c1 to only see the broadcast traffic from it's programs, and c2 should only see the broadcast traffic from it's programs.

I figure I can just tell c1 to ignore all broadcast traffic from c2 and c2 to ignore all broadcast traffic from c1, but this is just a little harder than that.

If it's possible, I'd like to set things up such that a host's broadcast traffic is seen internally, but doesn't make it as far as the switch. The switch I'm using is pretty cheap and I'm concerned I'm going to flood it with too many packets. So, is it possible to allow a program to bind to a broadcast address, have the packets stay on the local host and never actually send them to the switch?

I'm eager to hear any ideas

-Max

PS, I cannot force the programs to bind to the loopback interface. They always bind to eth0's broadcast address.
 
Old 09-27-2007, 09:10 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
It seems to me that your problem is in the design of these applications. The way that grown ups would design these applications would be to use specific ports.
 
Old 10-02-2007, 11:44 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
Quote:
Originally Posted by stress_junkie View Post
It seems to me that your problem is in the design of these applications. The way that grown ups would design these applications would be to use specific ports.
Whilst the ideal solution probably would involve a more fundamental rearchitecting, stating that as the only "grown up" solution isn't helping, and seems somewhat rude to me...
 
Old 10-03-2007, 12:33 PM   #4
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
I am just curious to know if you have tried with iptables in the OUTPUT chain ?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tricky prism54 pcmcia wlan problem stabu Slackware 10 10-07-2005 04:30 PM
TRTP - Tricky Routing Task Problem tokehs Linux - Networking 7 08-27-2004 06:10 PM
tricky problem devit Programming 4 02-18-2004 09:30 PM
Tricky alsa and kernel 2.6 problem. raid517 Linux - Hardware 1 10-01-2003 03:42 AM
tricky pppd problem Phish Linux - Networking 1 10-04-2001 03:58 PM


All times are GMT -5. The time now is 01:36 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration