I made a subnet on my LAN, which is of 10.0.x.x. The main part of my local LAN is of 192.168.x.x.
To make this subnet work for outside network services, I had to use bridge0. This is after setting up hostapd, and creating a route.
My localnet is for instance attlocal.net. What am I allowed to name my subnet according to conventions. I may not want to have it the same as my conventional naming address of the main part of my LAN. The hostname seems easy, but what about the replacement part for attlocal.net, which I want to be different? Can I name it anything like myhostname.disney.land? or is there a convention? It seems like this works from my computer.
In this case I want my ftp server only accessible from behind my computer. I have an alias under the 10.0.x.x addresses for my ftp server.
I read that I have to edit /etc/hosts to allow a name for a subnet named address. Then, how do I restart it, so it takes effect?
I have a wifi access point from behind my FreeBSD machine, now I also need a name for the ftp server address from behind this access point. I don't want the ftp server to be seen from the main part of my LAN, only seen and accessed from this hostapd access point behind my FreeBSD computer.
Another question is, by default does having hostapd on a wlan not allow ftp or any other access from outside of my FreeBSD machine, like from the main part of my localnet? As long as my bridge isn't set to a static route from the ftp alias, to the outside router?
This may be so, but I may have difficulty testing this set up.
I'll write some details of my setup, so far:
I have hostapd.conf set up according to the handbook for wlan0.
rc.conf
Don't have a wpa_supplicant.conf file, as it's not needed, as I'm using a wired connection to the computer.
small update:
I've used
ftp is working from my machine to these aliases, IP's, and localhost. A little more may be needed for me to get them to work from a device behind this computer.
To make this subnet work for outside network services, I had to use bridge0. This is after setting up hostapd, and creating a route.
My localnet is for instance attlocal.net. What am I allowed to name my subnet according to conventions. I may not want to have it the same as my conventional naming address of the main part of my LAN. The hostname seems easy, but what about the replacement part for attlocal.net, which I want to be different? Can I name it anything like myhostname.disney.land? or is there a convention? It seems like this works from my computer.
In this case I want my ftp server only accessible from behind my computer. I have an alias under the 10.0.x.x addresses for my ftp server.
I read that I have to edit /etc/hosts to allow a name for a subnet named address. Then, how do I restart it, so it takes effect?
I have a wifi access point from behind my FreeBSD machine, now I also need a name for the ftp server address from behind this access point. I don't want the ftp server to be seen from the main part of my LAN, only seen and accessed from this hostapd access point behind my FreeBSD computer.
Another question is, by default does having hostapd on a wlan not allow ftp or any other access from outside of my FreeBSD machine, like from the main part of my localnet? As long as my bridge isn't set to a static route from the ftp alias, to the outside router?
This may be so, but I may have difficulty testing this set up.
I'll write some details of my setup, so far:
I have hostapd.conf set up according to the handbook for wlan0.
rc.conf
Code:
gateway_enable="YES"
static_routes="hostap2internet"
route_hostap2internet="-net 192.168.x.x/24 10.0.x.x/8"
# above 3 needed for devices behind my computer to connect & use internet
# don't know whether to add a route from the alias to the modem,
# as it may be required for it to work, however,
# I don't want access from beyond behind my FreeBSD machine for FTP
hostapd_enable="YES"
wlans_wificard0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 10.0.x.x/8 ssid ..."
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm wificard0 addm wlan0 up"
# two above needed for access of internet of devices connected to hostapd,
# and to connect to hostapd
ftpd_enable="YES"
ftpd_flags="-A -D -l"
small update:
I've used
service hostid restart
, and this reset what I named the IP's behind my BSD machine, what what I edited in /etc/hosts. myhost.disney and myhost.disney.land seemed to both work. Running traceroute from the IP's or aliases, also confirmed that my subnet IP's matched the desired aliases.ftp is working from my machine to these aliases, IP's, and localhost. A little more may be needed for me to get them to work from a device behind this computer.