Zone ipf question


 
Thread Tools Search this Thread
Operating Systems Solaris Zone ipf question
# 1  
Old 08-14-2012
Zone ipf question

Hello,
I was wondering, if your setting ipf filter rules on a Solaris 10 server with one or more full root zones. Where do you set it? I know that the place to set the rules is here; /etc/ipf/ipf.conf. Do I set it in each zone and the global? Or should I just set the rules at the global?

Also the the interfaces are shared. For example if you do an ifconfig -a
Code:
# ifconfig -a
lo0:  flags=2001000849<UP,LOOPBACK,RUNNING,IPv4,VIRTUAL> mtu 8232 index 1 
         inet 127.0.0.1 netmask ff000000
lo0:1:  flags=2001000849<UP,LOOPBACK,RUNNING,IPv4,VIRTUAL> mtu 8232 index 1
           zone zone-name
           inet 127.0.0.1 netmask ff000000
aggr1: flags=1000843<UP,LOOPBACK,RUNNING,IPv4,VIRTUAL> mtu 8232 index 2 
           inet 192.168.120.120 netmask ffffff00 broadcast 192.168.120.255
e1000g0: flags=1000843<UP,LOOPBACK,RUNNING,IPv4,VIRTUAL> mtu 1500 index 3 
           inet 192.168.159.25 netmask fffffe00 broadcast 192.168.159.255
e1000g0:1: flags=1000843<UP,LOOPBACK,RUNNING,IPv4,VIRTUAL> mtu 1500 index 3 
           zone zone-name
           inet 192.168.159.66 netmask fffffe00 broadcast 192.168.159.255

Please let me know what I should do?
# 2  
Old 08-14-2012
For shared interfaces I think you have to setup IPF in the global zone.
# 3  
Old 08-14-2012
bartus11,
Thanks for your help. The interface is shared but the IPs are not. This is why I was scratching my head. I may have to set it in both places.
# 4  
Old 08-14-2012
What do you mean by "IPs are not shared"? If you have zone with shared network interface, then IP will show up in ifconfig -a output on the global zone as well as in the zone itself.
# 5  
Old 08-15-2012
What I mean is the IP is for the zone the you don't use it to access the global zone. The global zone only knows about because there sharing the interface.
# 6  
Old 08-15-2012
But all the network traffic going to the non-global zone goes through network stack of the global zone first. So you can use IPF in the global zone to limit network access to the non-global zones with shared network interfaces.
# 7  
Old 08-17-2012
BitLord,

You need to set the IP's in your Global Zone for the particular zone you are trying to configure.
Run the following commands:

# add net
#set address= 192.x.x.x
#set physical=
# end -----> to commit the network configuration. But you will still be within the Zone configuration table okay.

If you run these commands and you are still running into the same problem, my suggestion would be to start over. But this time around add the following commands above before committing the Zone.

Good luck
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

2. Solaris

Zone Cluster Question

I have a question about losing a node in a zone cluster. Hopefully I can explain enough for someone to answer. Let's say I have a zone cluster spread over 3 physical nodes. If Node1 crashes, would I be correct in assuming I would lose all zones on Node1? If I lost Node1 below, would I lose... (4 Replies)
Discussion started by: MasonJ
4 Replies

3. UNIX for Advanced & Expert Users

ipf/ipnat NAT/port forward issues

I've been going crazy trying to get this working. Here's the situation: we have a Solaris 10 box that connects an internal network to an external network. We're using ipf/ipnat on it. We've added a couple of new boxes to the internal network (192.168.1.100, .101) and want to be able to get to port... (1 Reply)
Discussion started by: spakov
1 Replies

4. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

5. Cybersecurity

IPF pass in connection to port 21 even with no explicit rule

I'm running IPF on solaris 10 bash-3.00# ipf -V #display ipf version ipf: IP Filter: v4.1.9 (592) Kernel: IP Filter: v4.1.9 Running: yes Log Flags: 0 = none set Default: pass all, Logging: available Active list: 1 Feature mask: 0x107 with the following rules bash-3.00# ipfstat -o -i... (0 Replies)
Discussion started by: h@foorsa.biz
0 Replies

6. Solaris

IPF on Solaris 10 prior 10 8/07 releases

I'm trying to enable IPF ( ip filter ) on solaris 10 release 6/06 Solaris 10 6/06 s10s_u2wos_09a SPARC so i enabled svc:/network/ipfilter:default it was disabled by default and svc:/network/pfil:default was enabled and online there only one config file under etc $/etc/ipf/ipf.conf i... (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

7. Solaris

Some Question's about Zone

Hi all, i am new learner in Zoning and virtualization Technology and i have some question's about it i create zone using this step zonecfg -z app-apache create set zonepath=/zone_adm/app-apache add net set address=192.168.1.250 set physical=bge0 end set autoboot=true verify commit... (13 Replies)
Discussion started by: coxmanchester
13 Replies

8. Solaris

ipf.conf question

OK I am running solaris 10. I made some changes to my ipf.conf file and issued the command: ipf -Fa -f /etc/ipf/ipf.conf to flush out the old and bring in the new changes. When I ran ipfstat -ioh to verify it had brought in the new rule set I saw something I wasn't expecting to see. I... (3 Replies)
Discussion started by: NewSolarisAdmin
3 Replies

9. Solaris

Question regarding Zone Migration

I have a general question regarding Zone Migration. I have an older system that is currently running a zone configured with ProFTPD & SSL. If I want to migrate or clone that zone to another (much newer) system, will I still have to setup & configure ProFTPD & SSL on the new system? (3 Replies)
Discussion started by: em23
3 Replies
Login or Register to Ask a Question