P
P
Pavel Semenov2016-10-10 18:18:36
FreeBSD
Pavel Semenov, 2016-10-10 18:18:36

How to make a gateway on FreeBSD?

Hello.
decided to put the gateway on freebsd 10.3
updated the ports
rebuilt the kernel with the following parameters:
options IPFIREWALL
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=50
options IPDIVERT
options IPFIREWALL_NAT
options LIBALIAS
options DUMMYNET Registered
in rc.conf
hostname="newfree" if netconfig_em0
="inet 19.15kmas .255.0"
ifconfig_em1="inet 11.111.111.111 netmask 255.255.255.128"
defaultrouter="11.111.111.112"
gateway_enable="YES"
sshd_enable="YES"
ntpd_enable="YES"
firewall_enable="YES"
firewall_nat_enable="YES"
firewall_nat_interface="em1"
firewall_type="OPEN"
firewall_script="/etc/ipfw.conf"
file ipfw.conf
[email protected]:/usr /home/user # ipfw show
00002 1809 122329 allow ip from any to any 65535
19 1234 allow ip from any to any
[email protected]:/usr/home/ user where I'm stupid (((otherwise the roof is already going

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
blackbeard, 2016-10-11
@Black_beard_ast

Isn't it easier?

D
Dmitry, 2016-10-10
@Tabletko

Forgotten NATA Rule

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question