LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-30-2005, 12:35 PM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Firewall setting in solaris and winxp


My winxp PC is under a router for accessing the remote solaris workstation associated with a public IP address.

Now I want to configure the firewall on solaris and winxp as follows:

From remote host to local PC (Inbound): ( I think this one can be configured by my router )
TCP 6000 ~ 6010
TCP 16001


From local PC to remote host (Outbound):
( My problem is how to open port in solaris or linux )
UDP 177
TCP 512, 513, 514, 23, 22

How can I implement the above one?


Last edited by UltraSoul; 07-30-2005 at 12:45 PM.
 
Old 07-31-2005, 05:20 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What firewall software are you using on the Solaris box ?
 
Old 07-31-2005, 05:31 AM   #3
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
The standard linux firewall is iptables and comes with most distros. I think it may also be used by Solaris but I'm not sure on this. To configure the firewall on a linux box as per your needs, first of all be root. Then:

Code:
iptables -L
This will list the current firewall ruleset. Find the name of the chain that's got the input rules in it - as you're using RH9 I expect it to be something like RH-Firewall-1-INPUT - that's what I'll use in the code below, change it if it's wrong.

Enter the following commands, still as root:

Code:
iptables -A RH-Firewall-1-INPUT -p udp -m udp --dport 177 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 512 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 513 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 514 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 22 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 23 -j ACCEPT
When you've done that, the rules are active and you can test them. Once you're happy that they're doing what you want, commit them to disk so they load next time you boot - otherwise you'll have to reload them. Still as root:

Code:
service iptables save
 
Old 07-31-2005, 07:24 PM   #4
mattLSO
Member
 
Registered: Jun 2005
Posts: 43

Rep: Reputation: 15
What you need for solaris is IPF, check out this tutorial http://www.homepage.montana.edu/~uni...aris_ipf.html.

Regards
 
  


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
Firewall on Solaris anuode Solaris / OpenSolaris 3 10-11-2005 09:06 PM
winxp and solaris x86 dula boot UltraSoul Solaris / OpenSolaris 7 05-09-2005 01:33 AM
How to communicate with winXP in Solaris UltraSoul Solaris / OpenSolaris 4 12-30-2004 05:04 PM
solaris firewall Robert0380 Solaris / OpenSolaris 6 10-02-2003 05:36 AM
Solaris Noob wants solaris firewall lhiggins Solaris / OpenSolaris 3 05-09-2003 03:22 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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