{"id":2831,"date":"2019-11-25T15:00:53","date_gmt":"2019-11-25T15:00:53","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2831"},"modified":"2019-11-25T15:00:54","modified_gmt":"2019-11-25T15:00:54","slug":"freebsd-7-allow-ip-range-to-ssh-to-server-ipf","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/freebsd-7-allow-ip-range-to-ssh-to-server-ipf\/","title":{"rendered":"FreeBSD 7 Allow IP range to SSH to server &#8211; IPF"},"content":{"rendered":"\n<p>Edit IPF config<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/etc\/ipf.rules<\/pre>\n\n\n\n<p>Hit &#8220;i&#8221; to enter insert mode and add the following to allow SSH from the 192.168.0.0\/24 ip range.  Change range if needed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pass    in     quick on bge0 proto tcp from 192.168.0.0\/24 to any port = 22 flags S keep state<\/pre>\n\n\n\n<p>Save and exit the file by hitting &#8220;Esc&#8221; then typing &#8220;:wq&#8221; followed by enter.<\/p>\n\n\n\n<p>And start IPF with new rules<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ipf -Fa -f \/etc\/ipf.rules<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edit IPF config vi \/etc\/ipf.rules Hit &#8220;i&#8221; to enter insert mode and add the following to allow SSH from the 192.168.0.0\/24 ip range. Change range if needed. pass in quick on bge0 proto tcp from 192.168.0.0\/24 to any port = &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/freebsd-7-allow-ip-range-to-ssh-to-server-ipf\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[151],"tags":[160,153,817,816,818],"class_list":["post-2831","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-firewall","tag-freebsd-2","tag-freebsd-7","tag-ipf","tag-rules"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2831"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2831\/revisions"}],"predecessor-version":[{"id":2832,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2831\/revisions\/2832"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}