LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2004, 08:53 AM   #1
ayachi
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
RPC and firewall (iptable)


Hi all
I have a client server program that use remote procedure call to communicate

if the iptable is stoped the two programs run well

if restarted iptable the client can't communicate

I start the server to get the port number but I found that's it's not unique it change

I know that the server register to portmap to get a free port number


How to configure firewall (iptable) to let commnunication done ?


thank's lot
 
Old 05-13-2004, 04:44 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Blog Entries: 4

Rep: Reputation: 78
If the computers are on an internal network you can allow them access based on interface ie: eth1 using the -i flag ie:
Code:
iptables -A INPUT -i eth1 -j ALLOW
If you must connect over the internet, then you can allow based on source address ie: computers that you want to allow to connect:
Code:
iptables -A INPUT -p tcp -s 192.168.5.2 -j ALLOW
If you want to allow anyone to connect, you can allow a range of ports (that your service run under) ie:
Code:
iptables -A INPUT -p tcp --dport 1024:1124 -j ALLOW
This will allow all conections to ports 1024-1124. This is not very secure however. Try to discover what range of ports your server is running on, better yet, try to bind it to a single port....
 
  


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
SuSe 9.3 Firewall iptable issue Dralnu Linux - Security 1 08-13-2005 02:29 PM
iptable based firewall configurations rksinghpatel Linux - Networking 1 05-17-2005 03:46 PM
Problem with exporting/firewall , RPC: No route to host pinguscot Linux - Networking 1 11-05-2004 06:29 AM
unable get dhcp with iptable firewall active LionKing Linux - Networking 4 02-19-2002 07:33 PM
Firewall/RPC rois@Bas-peo.com Linux - Networking 1 05-18-2001 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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