I'm usually connected to Internet thru my WiFi router.It happens sometimes I need to test/install GhostBSD on some machine that doesn't have a WiFi adapter at all, in this case I connect the GhostBSD machine to my Linux connected machine:

Note: You can use a straight 1 to 1 cable if both eth devices support autosensing, this is the case for Gigabit capable eth devices, otherwise you need to use a crossed cable when using older non-autosensing eth devices.

I'm running Arch, however iptables is widely used in many Linux distros

enp7s0 is the name of my Linux Eth device (usually named eth0)wlp6s0 is the name of my Linux Wifi device (usually named wlan0)the wifi network is: 192.168.1.0/24 and the wifi card has an address in that range, say 192.168.1.1the eth network is: 192.168.2.0/24 and the eth device has an address in that range, say 192.168.2.254

be sure to start the iproute service, command may vary depending on your init system.

That's all on Linux side.

~~~

On the GhostBSD machine the INET address must be manually set to something in eth network range, say 192.168.2.1and set the DEFAULTROUTER to 192.168.2.254 which act as a gateway.

issue the following two commands, and your GhostBSD machine is ready to go: