ipnat.conf is the configuration file, on NetBSD in /etc .
###### IPNAT.CONF ######
## Mind that fxp0 is our internet connection
## 10.0.2.0 and 10.0.1.0 are our internal networks
## NAT first
## nat ftp to the built in ftp-proxy
map fxp0 10.0.2.0/24 -> 0/32 proxy port 21 ftp/tcp
map fxp0 0.0.0.0/0 -> 0/32 proxy port 21 ftp/tcp
##nat net 1 to the internet
map fxp0 10.0.2.0/24 -> 0.0.0.0/32
##nat net 2 to the internet
map fxp0 10.0.1.0/24 -> 0.0.0.0/32
## REDIRECTS next
## redirects with the same or different ports and networks
rdr fxp0 0/0 port 443 -> 10.0.1.9 port 443
rdr fxp0 0/0 port 7775 -> 10.0.1.7 port 3389
rdr fxp0 0/0 port 7384 -> 10.0.2.121 port 3389
- HOME
~~~~~~~~~~~~~~~
- OpenBSD
- NetBSD
- FreeBSD
- Linux
- Solaris
- Windows
~~~~~~~~~~~~~~~
- Git
- Ansible
- Atlassian
- Network tools
- Qemu
- Virtualbox
- Vim
- Tmux
- Mutt
- STar
~~~~~~~~~~~~~~~
- MySQL
- PostgreSQL
- Postfix
- OpenSSL
- tcpdump
- SSH
~~~~~~~~~~~~~~~
- Packet Filter
- IP Filter
~~~~~~~~~~~~~~~
- Bash
- web-dev
- Hacking
- LINUX DAYS