Summex 69 Posted October 10, 2016 Share Posted October 10, 2016 Hello guys ! I am correctly trying to setup a server for me with a clean VM. I installed freebsd 10.3, mysql 5.6 and so on. I want to run a server purely for me no other people should be able to connect. I have set the network adapter in virtualbox to bridge mode. Now I have to setup the networking in configuraiton in freebsd the problem is, i dont know how. The interface has changed and now I dont know how to setup the networking in freebsd to allow the server to run for just me. This is how it looks when i go into network configuration: i.epvpimg.com//cPdCg.png I would appreciate it if someone could tell me where to put my ip adress and since i am doing it without hamachi with ot wihtout 100 at the end ? what to put in at the other options etc. If someone could help that would be really great, I am looking forward to any answers ! Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted October 10, 2016 Premium Share Posted October 10, 2016 Forget all the old crappy tuts. Change adapter to nat. (Also, recommended Hyper-V or vmware. VBox is just awful) Activate dhcp. When you login, do "ifconfig" without " to see your ip adress. Use that ip and be happy. 1 Link to comment Share on other sites More sharing options...
MichaelM 40 Posted October 10, 2016 Share Posted October 10, 2016 Activate ipv4 & dhcp. Set networking adapter as NAT. Run this: Spoiler dhclient em0 * Note, your network interface might not be em0, you have to change em0 with your interface. Kind regards. 1 1 Link to comment Share on other sites More sharing options...
Summex 69 Posted October 11, 2016 Author Share Posted October 11, 2016 I changed the adapter to nat, activated dhcp. When I run dhclient em0 it tells me the service is already running. When i enable dhcp it automatically sets an ip and the netmask, when i change any of the values it disables it again. Using the automatically set ip by dhcp wont allow me to connect to the server via filezilla. Any ideas ? Link to comment Share on other sites More sharing options...
Premium Crystal™ 25 Posted October 11, 2016 Premium Share Posted October 11, 2016 Do you want set up the network for hamachi? Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted October 11, 2016 Premium Share Posted October 11, 2016 1 hour ago, Summex said: I changed the adapter to nat, activated dhcp. When I run dhclient em0 it tells me the service is already running. When i enable dhcp it automatically sets an ip and the netmask, when i change any of the values it disables it again. Using the automatically set ip by dhcp wont allow me to connect to the server via filezilla. Any ideas ? It allows you do to so, im using it. Make sure you edited sshd config to permit root login and enabling port 22. Like i said, vmware will allow you to have dhcp on without changing ip on every session. It wont happen because the ip assigned it out of reach for the other pcs on your home (if you have for example 192.168.1.2 >> 192.168.1.25 it will assign you in the 192.168.200.x fr example). 1 Link to comment Share on other sites More sharing options...
Summex 69 Posted October 11, 2016 Author Share Posted October 11, 2016 14 minutes ago, Crystal™ said: Do you want set up the network for hamachi? No I want to be the only one able to connect to the server 5 minutes ago, tierrilopes said: It allows you do to so, im using it. Make sure you edited sshd config to permit root login and enabling port 22. Like i said, vmware will allow you to have dhcp on without changing ip on every session. It wont happen because the ip assigned it out of reach for the other pcs on your home (if you have for example 192.168.1.2 >> 192.168.1.25 it will assign you in the 192.168.200.x fr example). How can I save the changes I make to the sshd_config via ee /etc/ssh/sshd_config ? dumb question i know but i cant find the option / command prompt / whatever to save and exit. Are there any other places that I have to enable port 22 ? And the ip adress dhcp is giving me is different compared to a 192.168.xx.xx one. Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted October 11, 2016 Premium Share Posted October 11, 2016 5 minutes ago, Summex said: No I want to be the only one able to connect to the server How can I save the changes I make to the sshd_config via ee /etc/ssh/sshd_config ? dumb question i know but i cant find the option / command prompt / whatever to save and exit. Are there any other places that I have to enable port 22 ? And the ip adress dhcp is giving me is different compared to a 192.168.xx.xx one. use ee. Do this: ee /etc/ssh/sshd_config Look for: #PermitRootLogin no Change into: PermitRootLogin yes Look for: #Port 22 Change into: Port 22 To save and exit editor, press: ESC-->Enter-->Enter Then restart sshd with: service sshd restart 1 Link to comment Share on other sites More sharing options...
Premium Crystal™ 25 Posted October 11, 2016 Premium Share Posted October 11, 2016 7 minutes ago, Summex said: No I want to be the only one able to connect to the server How can I save the changes I make to the sshd_config via ee /etc/ssh/sshd_config ? dumb question i know but i cant find the option / command prompt / whatever to save and exit. Are there any other places that I have to enable port 22 ? And the ip adress dhcp is giving me is different compared to a 192.168.xx.xx one. Link to comment Share on other sites More sharing options...
Summex 69 Posted October 11, 2016 Author Share Posted October 11, 2016 8 minutes ago, tierrilopes said: use ee. Do this: ee /etc/ssh/sshd_config Look for: #PermitRootLogin no Change into: PermitRootLogin yes Look for: #Port 22 Change into: Port 22 To save and exit editor, press: ESC-->Enter-->Enter Then restart sshd with: service sshd restart Thanks, I got that working. Still the problem remains that the Network Configuration isn't quite right. I think the ip adress dhcp automatically sets is wrong, is that a possibility and could that be the cause of the problems ? I assume it has something to do with the default router / gateway that is set in the options. when i use a website that tells me my ip is that of any use ? cause ifconfig gives me the "wrong" ip adress that is set in the default router in networking configuration. Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted October 11, 2016 Premium Share Posted October 11, 2016 1 minute ago, Summex said: Thanks, I got that working. Still the problem remains that the Network Configuration isn't quite right. I think the ip adress dhcp automatically sets is wrong, is that a possibility and could that be the cause of the problems ? I assume it has something to do with the default router / gateway that is set in the options. when i use a website that tells me my ip is that of any use ? cause ifconfig gives me the "wrong" ip adress that is set in the default router in networking configuration. If you want it only for yourself, you dont need to touch your router. PM me with your teamviewer. 1 Link to comment Share on other sites More sharing options...
Summex 69 Posted October 11, 2016 Author Share Posted October 11, 2016 Problem is solved, he helped me via TeamViewer. Much thanks and big appreciation to this guy - Good work ! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now