English Version
Article Description: Using NATd will allow multiple computers or devices to share the same IP address. Great for cable modems and such.
These instructions will help you configure NATd on FreeBSD with the firewall implemented.NATd will NOT work unless you have a properly configured firewall, so read the firewall tutorial first if you have not already done so.Note that it is almost suicidal to do this remotely, as one mistake can leave you unable to reach the PC.
- Become root on the machine.
- Formulate a config file.
- Figure out the appropriate command line arguments, mine are as follows: (NATd is no longer a port, and is now distributed with FreeBSD)
- /usr/sbin/natd -m -f /etc/natd.conf
- -m – tries to keep ports consistant, and helps things like RPC work.
- -f – specifies the config file to use.
- Put the command line into rc.local.
- Set the line in /etc/rc.conf that states gateway_enable=”NO“ to
gateway_enable=”YES” - Configure your internal machines to use the NATd machine as a gateway.
- Reboot.
Here is my natd.conf… to start NATd on bootup I also added the following lines to /etc/rc.conf
natd_enable=”YES”
natd_interface=”ed0″
natd_flags=”-f /etc/natd.conf”
begin natd.conf
use_sockets yes
same_ports yes
unregistered_only yes
dynamic yes
pptpalias 192.168.2.51
port 7778
interface ed0
redirect_port tcp 192.168.2.50:5800 5800
redirect_port tcp 192.168.2.50:5900 5900
end natd.conf
Indonesia Version
Uraian artikel: Mempergunakan NATd akan mengijinkan beberapa komputer atau alat untuk berbagi Alamat IP yang sama. Cocok untuk modem kabel.
Arahan ini akan menolong kamu mengatur NATd pada FreeBSD dengan firewall yang terapkan.
NATd tidak akan bekerja kecuali jika kamu belum mempunyai satu firewall terkonfigur dengan baik, baca firewall pelajaran pertama kalau kamu belum dilakukan.Catatan bahwa ini adalah hampir bunuh diri untuk lakukan ini secara remote, sebagai satu kesalahan dapat membuat kamu yang tidak dapat mejangkau PC.
1. Jadi root pada mesin.
2. Rumuskan satu config arsip.
3. Menggambarkan di luar pagar garis perintah sesuai argumen, milikku adalah sebagai berikut: (NATd adalah tidak lagi satu port, dan kini terdistribusi dengan FreeBSD)
* /usr / sbin / natd m f / dsb. / natd.conf
* -m percobaan untuk mempertahankan consistant bandar, dan tolong hal-hal seperti RPC bekerja.
* -f menetapkan config mengarsipkan pergunakan.
4. Letakkan garis perintah ke dalam rc.local.
5. Cocokkan baris di / dsb. / rc.conf bahwa berkata gateway_enable= “TIDAK ADA” untuk
gateway_enable= “YA”
6. Atur mesin internalmu untuk mempergunakan mesin NATd sebagai satu pintu gerbang.
7. Bot ulang.
Di sini adalah natd.confku… untuk mengawali NATd pada bootup aku juga penambahan baris berikut ke / dsb. / rc.conf
natd_enable= “YA”
natd_interface= “ed0″
natd_flags=”-f / dsb. / natd.conf”
mulai natd.conf
use_sockets yes
same_ports yes
unregistered_only yes
dynamic yes
pptpalias 192.168.2.51
port 7778
interface ed0
redirect_port tcp 192.168.2.50:5800 5800
redirect_port tcp 192.168.2.50:5900 5900
natd.conf berakhir
















