da54
![]() |
|
|
|
|
|||||||
| Firewalls IPFW, PF, IPF (but not limited) related discussion |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have a simple ipf.rules setup. My interface is fxp0 but when I have that in my config file, it blocks everything. I can't ping or shell in.
Code:
pass in quick on lo0 all pass out quick on lo0 all pass out quick on fxp0 proto udp from any to 10.10.10.1 port = 53 keep state pass out log quick on fxp0 proto udp from any to any port = 67 keep state pass in quick on fxp0 proto icmp from any to any icmp-type 8 keep state pass in quick on fxp0 proto tcp from any to any port = 22 flags S keep state block in log first quick on fxp0 all block out log first quick on fxp0 all Last edited by DutchDaemon; May 7th, 2012 at 15:37. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#2
|
|||
|
|||
|
Turn on the log function and you will see [bad in] error message on each packet. FreeBSD release version 7.x through 9.0 are all running ipfilter version 4.1.28. This version of ipfilter has a known bug [since 2009] with interfaces that use a hardware checksum function. It seems that motherboards with builtin NICs come with the hardware checksum function enabled. Issue this command from the command line to disable the hardware checksum function:
ifconfig fxp0 -rxcsum and your problem will go away.
Last edited by DutchDaemon; May 6th, 2012 at 01:00. |
| The Following User Says Thank You to fbsd1 For This Useful Post: | ||
thefueley (May 7th, 2012) | ||
|
#3
|
|||
|
|||
|
Well.. that such a knowledge
![]() How come it passed out RELEASE unnoticed? |
|
#4
|
|||
|
|||
|
Ipfilter is not maintained by the FreeBSD development team. It's ported from an open source provider. Ipfilter is now at 5.1.1 version and FreeBSD still stays at version 4.1.28. I have posted PR's to get a current version imported into FreeBSD. But the PR is always closed before any real investigation is done about refreshing to a newer version. This subject never gets to the notice of the release team so nothing gets done to correct it. Send in your own pr and see what happens.
Last edited by DutchDaemon; May 6th, 2012 at 21:30. |
|
#5
|
|||
|
|||
|
You are awesome! It did work for me. Is there a way to make the -rxcsum permanent? The setting disappears after a reboot.
Last edited by DutchDaemon; May 7th, 2012 at 15:36. |
|
#6
|
|||
|
|||
|
Actually, I got it. I found it under the interfaces section, within sysinstall. Thank you again!
Last edited by DutchDaemon; May 7th, 2012 at 15:36. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [IPF] Regarding IPF rules | shesjustaglitch | Firewalls | 1 | April 2nd, 2012 06:38 |
| [Solved] Network config don't work on FreeBSD but work on Ubuntu/Debian/OpenBSD; why ? | zyzuz | Networking | 7 | March 30th, 2012 19:07 |
| my ipf rules | rill | Firewalls | 2 | October 18th, 2010 13:50 |
| Are there any way to add new rules to pf without write the rules to the pf.conf | tanakorn | Firewalls | 2 | February 8th, 2010 09:09 |
| [Solved] My first pf rules | locutus | Firewalls | 6 | October 13th, 2009 10:04 |