ipfilter on QNX 6.3

I would like to establish a firewall on a QNX box. This firewall must
only allow IP addresses 192.168.11.X on port 5085 (TCP only).

The help documentation refer to lsm-ipfilter.so which is nowhere to be
seen on my computer. Why?

I eventually installed ipfilter V3.4.6 from the web but which uses
nfm-ipfilter.so (already different from the documentation).

My rules file is:
block in all
pass in quick on en0 proto tcp from 192.168.11.0/24 to 192.168.11.0/24
port = 5085
pass out quick on en0 proto tcp from 192.168.11.0/24 port = 5085 to
192.168.11.0/24


I have activated the filter and performed ipfstat commands:

mount -T io-net -o file=/truvelo/diskimg/combi/etc/ipf.conf

/lib/dll/nfm-ipfilter.so
IP Filter: v3.4.6 initialized. Default = pass all, Logging = enabled
IP Filter: v3.4.6

ipfstat -i

block in from any to any
pass in quick on en0 proto tcp from 192.168.11.0/24 to 192.168.11.0/24
port = 5085

ipfstat -o

pass out quick on en0 proto tcp from 192.168.11.0/24 port = 5085 to
192.168.11.0/24

From another computer I then establish a telnet session (which is
supposed to fail) but the session was established.

nestat and ipfstat provide the following info:

netstat

Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.11.67.telnet 192.168.11.66.1227
ESTABLISHED

ipfstat

input packets: blocked 0 passed 0 nomatch 0 counted 0 short 0
output packets: blocked 0 passed 0 nomatch 0 counted 0 short 0
input packets logged: blocked 0 passed 0
output packets logged: blocked 0 passed 0
packets logged: input 0 output 0
log failures: input 0 output 0
fragment state(in): kept 0 lost 0
fragment state(out): kept 0 lost 0
packet state(in): kept 0 lost 0
packet state(out): kept 0 lost 0
ICMP replies: 0 TCP RSTs sent: 0
Invalid source(in): 0
Result cache hits(in): 0 (out): 0
IN Pullups succeeded: 0 failed: 0
OUT Pullups succeeded: 0 failed: 0
Fastroute successes: 0 failures: 0
TCP cksum fails(in): 0 (out): 0
Packet log flags set: (0)
none

Therefore something is not working. What can it be?

Francois Joubert wrote:

I would like to establish a firewall on a QNX box. This firewall must
only allow IP addresses 192.168.11.X on port 5085 (TCP only).

The help documentation refer to lsm-ipfilter.so which is nowhere to be
seen on my computer. Why?

I eventually installed ipfilter V3.4.6 from the web but which uses
nfm-ipfilter.so (already different from the documentation).

My rules file is:
block in all
pass in quick on en0 proto tcp from 192.168.11.0/24 to 192.168.11.0/24
port = 5085
pass out quick on en0 proto tcp from 192.168.11.0/24 port = 5085 to
192.168.11.0/24

lsm-ipfilter.so is included with the Extended Networking TDK.

I tried out the third party nfm-ipfilter and was able to block telnet
from a specific host with the following in my rules file:

block in on en0 proto tcp/udp from to any port = 24

Regards,

Joe

Joe Mammone wrote:

lsm-ipfilter.so is included with the Extended Networking TDK.

I tried out the third party nfm-ipfilter and was able to block telnet
from a specific host with the following in my rules file:

block in on en0 proto tcp/udp from to any port = 24

Regards,

Joe

It does not want to work on my machine.
ipfstat -i and ipfstat -o shows the correct rules, but the following
bothers me:

ipfstat

input packets: blocked 0 passed 0 nomatch 0 counted 0 short 0
output packets: blocked 0 passed 0 nomatch 0 counted 0 short 0
input packets logged: blocked 0 passed 0
output packets logged: blocked 0 passed 0
packets logged: input 0 output 0
log failures: input 0 output 0
fragment state(in): kept 0 lost 0
fragment state(out): kept 0 lost 0
packet state(in): kept 0 lost 0
packet state(out): kept 0 lost 0
ICMP replies: 0 TCP RSTs sent: 0
Invalid source(in): 0
Result cache hits(in): 0 (out): 0
IN Pullups succeeded: 0 failed: 0
OUT Pullups succeeded: 0 failed: 0
Fastroute successes: 0 failures: 0
TCP cksum fails(in): 0 (out): 0
Packet log flags set: (0)
none

It does not register anything at all!

I am even communicating to this newsgroup and still absolutely nothing
gets registered.

This is how my computer is set up:

io-net -ptcpip -dspeedo

ifconfig en0 10.0.0.8/8

mount -T io-net -o file=/etc/ipf.conf lib/dll/nfm-ipfilter.so

IP Filter: v3.4.6 initialized. Default = pass all, Logging = enabled
IP Filter: v3.4.6

Have you tested on QNX 6.3?

Francois

On Fri, 18 Mar 2005 12:16:53 -0500, Joe Mammone <hw@qnx.com> wrote:

lsm-ipfilter.so is included with the Extended Networking TDK.

I tried out the third party nfm-ipfilter and was able to block telnet
from a specific host with the following in my rules file:

block in on en0 proto tcp/udp from to any port = 24

Joe
Francois is a customer of Systems 104 in South Africa.
Can you please show how you invoke ipfilter on 6.3.0?
(mount command as well as output from ipfilter
when signing on)
Also what is your network setup?

Thanks in advance

\

Using Opera’s revolutionary e-mail client: http://www.opera.com/m2/

Alex/Systems 104 wrote:

On Fri, 18 Mar 2005 12:16:53 -0500, Joe Mammone <> hw@qnx.com> > wrote:

lsm-ipfilter.so is included with the Extended Networking TDK.

I tried out the third party nfm-ipfilter and was able to block telnet
from a specific host with the following in my rules file:

block in on en0 proto tcp/udp from to any port = 24


Joe
Francois is a customer of Systems 104 in South Africa.
Can you please show how you invoke ipfilter on 6.3.0?
(mount command as well as output from ipfilter
when signing on)
Also what is your network setup?

Thanks in advance


We are not going to get any answers here, are we?

Francois Joubert wrote:

Alex/Systems 104 wrote:

On Fri, 18 Mar 2005 12:16:53 -0500, Joe Mammone <> hw@qnx.com> > wrote:

lsm-ipfilter.so is included with the Extended Networking TDK.

I tried out the third party nfm-ipfilter and was able to block
telnet from a specific host with the following in my rules file:

block in on en0 proto tcp/udp from to any port = 24



Joe
Francois is a customer of Systems 104 in South Africa.
Can you please show how you invoke ipfilter on 6.3.0?
(mount command as well as output from ipfilter
when signing on)
Also what is your network setup?

Thanks in advance


We are not going to get any answers here, are we?

I was using a 6.2 system for my initial tests.
I tried this out an 6.3.0, and I am seeing the same behavior as you
described. Looks like ipfilter may need to be updated to work with
6.3.0. I believe the source is available on the third party CD.

Regards,

Joe

On Thu, 31 Mar 2005 09:28:33 -0500, Joe Mammone <hw@qnx.com> wrote:

I was using a 6.2 system for my initial tests.
I tried this out an 6.3.0, and I am seeing the same behavior as you
described. Looks like ipfilter may need to be updated to work with
6.3.0. I believe the source is available on the third party CD.

THe required headers for this is now only available in
the extended networking TDK.
Purchasing this would not be an option.

Customer is unhappy about having to
buy additional libraries in order to run & compile
something that was already included in 6.2.,
ie already bought and paid for.

Would you be willing to port it and make at least the
binaries available?


Using Opera’s revolutionary e-mail client: http://www.opera.com/m2/

Alex/Systems 104 <acellarius@yah0o.lsd.com> wrote:

On Thu, 31 Mar 2005 09:28:33 -0500, Joe Mammone <> hw@qnx.com> > wrote:

I was using a 6.2 system for my initial tests.
I tried this out an 6.3.0, and I am seeing the same behavior as you
described. Looks like ipfilter may need to be updated to work with
6.3.0. I believe the source is available on the third party CD.

THe required headers for this is now only available in
the extended networking TDK.
Purchasing this would not be an option.

This is one of the disappointing trends that QSS has been on, 6.3.0 actually
removes more components than it updates from 6.2.1, and this applies to the
commercial SE and PE versions as well. It is especially frustrating and
annoying when features like ipfilter that were free for 6.2.1 (and not even
officially from QSS) get officially incorporated into 6.3.0 but only as a
TDK. One of the most expensive ones too.

The big problem with ALL the TDKs is that QSS has completely screwed up on
the marketing and distribution. You can only buy them on a per-project basis,
there is NO provision for runtimes for those customers that might need them
for smaller volume projects. There is also no official way to eval them to see
if you need them, so you have to commit to the large TDK fees just to eval
a TDK.

Don’t even get me started on the fact that ipfilter does not belong with the
rest of the IPv6 stuff. Two different worlds, which QSS’s marketing completely
failed to realize. Sure, go ahead and include the IPv6 enabled version of
ipfilter with the TDK, but make the IPv4 one available via 3rd party at least.

Cheers,
Camz.

\

Martin Zimmerman camz@passageway.com
Camz Software Enterprises www.passageway.com/camz/qnx/
QNX Programming & Consulting www.qnxzone.com

<camz@passageway.com> wrote in message news:d3eaqc$ilt$1@inn.qnx.com

Alex/Systems 104 <> acellarius@yah0o.lsd.com> > wrote:
On Thu, 31 Mar 2005 09:28:33 -0500, Joe Mammone <> hw@qnx.com> > wrote:

I was using a 6.2 system for my initial tests.
I tried this out an 6.3.0, and I am seeing the same behavior as you
described. Looks like ipfilter may need to be updated to work with
6.3.0. I believe the source is available on the third party CD.

THe required headers for this is now only available in
the extended networking TDK.
Purchasing this would not be an option.

This is one of the disappointing trends that QSS has been on, 6.3.0
actually
removes more components than it updates from 6.2.1, and this applies to
the
commercial SE and PE versions as well. It is especially frustrating and
annoying when features like ipfilter that were free for 6.2.1 (and not
even
officially from QSS) get officially incorporated into 6.3.0 but only as a
TDK. One of the most expensive ones too.

The big problem with ALL the TDKs is that QSS has completely screwed up
on
the marketing and distribution. You can only buy them on a per-project
basis,
there is NO provision for runtimes for those customers that might need
them
for smaller volume projects.

It maybe a problem for you, but isn’t QSS task to make money If they feel
they have something that some people are willing to pay extra money for, why
give it for free? Isn’t what business is about, squeezing all the money you
can from your customer. Of course if you squeeze to hard, that’s not good
:wink: Not an easy line to ride. QSS is becoming (I feel) more and more like
WindRiver in the way they do business, that’s probably good for them since
WindRiver is worth a LOTS of money, so they must have done something right.

I vote with camz on this one.

I’m hoping it’s just an overshoot when deciding how to divide up the various parts under the new scheme. If not, then the NC community will die for good.


Evan


Opps, is this not advocacy?!

“Evan Hillas” <evanh@clear.net.nz> wrote in message
news:d3g5mk$ct$1@inn.qnx.com

I vote with camz on this one.

I’m hoping it’s just an overshoot when deciding how to divide up the
various parts under the new scheme. If not, then the NC community will
die for good.

It’s already dead if you ask me.

Evan


Opps, is this not advocacy?!

Mario Charest wrote:

“Evan Hillas” <> evanh@clear.net.nz> > wrote in message
news:d3g5mk$ct$> 1@inn.qnx.com> …

I vote with camz on this one.

I’m hoping it’s just an overshoot when deciding how to divide up the
various parts under the new scheme. If not, then the NC community will
die for good.


It’s already dead if you ask me.



Evan


Opps, is this not advocacy?!
\

I am fairly new in the QNX environment and is therefore not aware at all
of the politics regarding QNX and its community.

I was looking for an embedded OS because I require a reliable
multi-tasksing OS, file system and networking capabilities. QNX offered
all this plus the support through Alex.

I know enough about hardware development and writing software to
communicate with the hardware. But I know nothing about writing
networking software and why should I? QNX offers all that.

Until now, that is. Now suddenly I find myself upgrading from 6.2 (from
which I started from) to 6.3 (because I wanted improved USB support) and
I must now try to make ipfilter work. The 3rd party version does not
work on 6.3. The source does not want to compile on 6.3 because there is
a missing header (net/if_vp.h to be precise). I doubt it very much, if I
manage to obtain this header file, that it will work.

I tried the ipfilter@coombs.anu.edu.au mail list. Got no answer from
them on the header file. Perhaps they could not be bothered with QNX.
Alex recons it is in the TDK. Is it in the TDK? I will be grateful if
somebody could answer this question.

Francois

Francois Joubert <sommerfj@webmail.co.za> wrote:

Alex recons it is in the TDK. Is it in the TDK? I will be grateful if
somebody could answer this question.

Yes, it’s in the Extended Networking TDK.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Hi…

I wonder if anyone knows how much are the TDKs in general? Hundreds or
thousands or tens of thousands? I asked my representative at one point,
but I got no answer. Does any one know?

Regards…

Miguel.


Steve Reid wrote:

Francois Joubert <> sommerfj@webmail.co.za> > wrote:

Alex recons it is in the TDK. Is it in the TDK? I will be grateful if
somebody could answer this question.


Yes, it’s in the Extended Networking TDK.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Steve Reid wrote:

Francois Joubert <> sommerfj@webmail.co.za> > wrote:

Alex recons it is in the TDK. Is it in the TDK? I will be grateful if
somebody could answer this question.


Yes, it’s in the Extended Networking TDK.

Does this now mean QNX is banning me from implementing a 3rd party
ipfilter unless I buy the TDK? I am sure this is not what they had in mind!?

Francois