Re: Jailed process listening to broadcast address of host system - possible?

2013-03-06 Thread Matthias Petermann

Hello,

thanks for your response.

Zitat von Fbsd8 :
Since your talking about a jail process, you really need to provide  
details on how you configured the jail and if your using the  
interface parameter?


The jail is configured using the interface parameter, sat to the same
IP as the Host. More details I can provide tonight.

Kind regards,
Matthias


--
Matthias Petermann 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Jailed process listening to broadcast address of host system - possible?

2013-03-05 Thread Fbsd8

Matthias Petermann wrote:


Hello,

is there any way to listen to a networks broadcast adress from within a 
Jail?


Given ist the following setup:

 * The host (IP 192.168.2.127)
 * The jail (same IP as host, 192.168.2.127)

When I do:

 $ nc -l 192.168.2.255 

I got the following results:

root@host # nc -l 192.168.2.255 


root@jail # nc -l 192.168.2.255 
nc: Can't assign requested address

The latter is the problem. I already sat security.jail.allow_raw_sockets=1
and now not sure if I am trying to do something which is not allowed by 
design?


Thanks in advance,
Matthias



# Additional Information:

## ifconfig (host):

root@host # ifconfig -a
em0: flags=8843 metric 0 mtu 1500
options=9b
ether 08:00:27:b3:64:f2
inet 192.168.2.127 netmask 0xff00 broadcast 192.168.2.255
nd6 options=29
media: Ethernet autoselect (1000baseT )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
inet 10.0.0.1 netmask 0x
inet 10.0.0.2 netmask 0x
inet 10.0.0.3 netmask 0x
inet 10.0.0.4 netmask 0x
inet 10.0.0.5 netmask 0x
nd6 options=21
pflog0: flags=141 metric 0 mtu 33152
nd6 options=21

## ifconfig (jail):

root@jail # ifconfig -a
em0: flags=8843 metric 0 mtu 1500
options=9b
ether 08:00:27:b3:64:f2
inet 192.168.2.127 netmask 0xff00 broadcast 192.168.2.255
media: Ethernet autoselect (1000baseT )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
pflog0: flags=141 metric 0 mtu 33152



Since your talking about a jail process, you really need to provide 
details on how you configured the jail and if your using the interface 
parameter?




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Jailed process listening to broadcast address of host system - possible?

2013-03-05 Thread Matthias Petermann


Hello,

is there any way to listen to a networks broadcast adress from within a Jail?

Given ist the following setup:

 * The host (IP 192.168.2.127)
 * The jail (same IP as host, 192.168.2.127)

When I do:

 $ nc -l 192.168.2.255 

I got the following results:

root@host # nc -l 192.168.2.255 


root@jail # nc -l 192.168.2.255 
nc: Can't assign requested address

The latter is the problem. I already sat security.jail.allow_raw_sockets=1
and now not sure if I am trying to do something which is not allowed  
by design?


Thanks in advance,
Matthias



# Additional Information:

## ifconfig (host):

root@host # ifconfig -a
em0: flags=8843 metric 0 mtu 1500
options=9b
ether 08:00:27:b3:64:f2
inet 192.168.2.127 netmask 0xff00 broadcast 192.168.2.255
nd6 options=29
media: Ethernet autoselect (1000baseT )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
inet 10.0.0.1 netmask 0x
inet 10.0.0.2 netmask 0x
inet 10.0.0.3 netmask 0x
inet 10.0.0.4 netmask 0x
inet 10.0.0.5 netmask 0x
nd6 options=21
pflog0: flags=141 metric 0 mtu 33152
nd6 options=21

## ifconfig (jail):

root@jail # ifconfig -a
em0: flags=8843 metric 0 mtu 1500
options=9b
ether 08:00:27:b3:64:f2
inet 192.168.2.127 netmask 0xff00 broadcast 192.168.2.255
media: Ethernet autoselect (1000baseT )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
pflog0: flags=141 metric 0 mtu 33152






--
Matthias Petermann 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"