Date: Wed, 4 Jan 2006 17:59:44 -0700 From: Dan Joumaa <nessup@gmail.com> To: freebsd-hackers@freebsd.org Subject: Invalid ipfirewall rule? Message-ID: <a280f1c696571b105ef9a49b1dabca22@gmail.com>
next in thread | raw e-mail | index | archive | help
I'm trying to set a rule that will divert all TCP/UDP packets from host X to my divert socket. When I try to set the below firewall rule, setsockopt fails and sets errno to EINVAL. Any ideas? entry->version = IP_FW_CURRENT_API_VERSION; entry->fw_src.s_addr = htonl(host); entry->fw_uar.fw_pts[1] = 0xffff; entry->fw_prot = IPPROTO_TCP|IPPROTO_UDP; entry->fw_flg = IP_FW_F_DIVERT; --ness
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a280f1c696571b105ef9a49b1dabca22>