Jump to content

Cannot connect to Polisy via ssh or browser - Solved


gviliunas

Recommended Posts

Note: This problem was ultimately solved by manually editing the rc.conf file  See post below.

I was testing WIFI configuration and forgot the rule, "Don't fix working machines" and am now paying for this...

1. Polisy was connected and working properly using Wired Ethernet.  Working

2. Used the Polisy Configuration page to configure the WIFI interface.  Working

3. Disconnected Wired Ethernet and was still able to connect to Polisy now via WIFI.  Working

4. Re-connected wired Ethernet  and forgot the WIFI Interface. Rebooted and verified Polisy was working. Working

5. Noticed that wlan0 still had the old DHCP address that it grabbed in testing. I thought to make this a static IP instead of reserving in my router. I tried to uncheck the DHCP checkbox for the wlan0 but received a pop-up stating that the Gateway cannot be 0.0.0.0. Okay, so all I did was change the Gateway from 0.0.0.0 to the correct address 192.168.1.210 on wlan0..... Snap - Now my wired connection to Polisy immediately stopped working.

I cannot ping Polisy nor can I cannot ssh to Polisy.

Using an IP scanner, I can see something responding on the old wired Polisy IP if polisy is connected. This scan fails if I disconnect the wire to Polisy.

Tried Power-cycling Polisy - No Joy

Tried pin-hole reset of Polisy - No Joy

 

 

 

Link to comment
Share on other sites

MY unit was connected fine last night and I was able to access on the browser. Just to be sure it didn;t start beeping all night I powered it down. This morning it seemed to boot ok and one LED remained however I could not longer access vis a browser. Just now the device started going through the setup process all over again with the annoying beeping. It's connected through ethernet to my router, that I can see. However it keeps going back into the reboot mode and beeping. Of course now it's just stopped.  Appears that I can no connect via firefox with error messages. 

Not Ready For Prime Time!

 

Link to comment
Share on other sites

Problem solved!

I powered-down, disconnect the WLAN card and powered-back up. Polisy came up normally and fully configured  (I did not lose anything by pressing the pin-hole reset button)

With the WLAN card removed and Policy up and running, I manually edited the rc.conf file:

     #Network Interfaces (default)

     ifconfig_wlan0="WPA inet 192.168.1.158 netmask 255.255.255.0"  ----->>>> ifconfig_wlan0="WPA DHCP"

     ifconfig_wlan0_ipv6="NOAUTO"                                                                ----->>>> ifconfig_wlan0_ipv6="inet6 accept_rtadv"

 

     defaultrouter="192.168.1.210"                                                                     ------>>>> Removed this line

Now, powered-down, re-inserted the WLAN card, and powered-up.

Polisy came up fully configured and running properly. :)

Link to comment
Share on other sites

Hi gviliunas...thanks for posting this! I just posted my own thread on this very same problem.

I repeated the steps you outlined and removed the wireless card. I can now login again, but I'm afraid I don't understand how to go about the next steps where you say you manually edit the rc.conf file?

How do you go about doing this? Is it via an ssh tool like Putty? Sorry, just don't know where to go from here

Any help would be appreciated!

Link to comment
Share on other sites

@Tuckerdude I used Putty to open an ssh session to Polisy then used vi editor to edit /etc/rc.conf. Note: You should make a backup copy of any system files you plan to edit.

sudo vi /etc/rc.conf

If you are not familiar with vi, I recommend that you google vi commands first. vi has been around a long time and some of the commands and things you type to get into various modes ( and into trouble) may seem unusual.

Link to comment
Share on other sites

Many thanks! I will take your advice and do a bit of research first!

TBH, I was not expecting this to product to be THIS RAW! It's quite rough around the edges and feels like it should have baked a bit longer. But regardless, I'm going to keep on working at it!

Thanks again!

Link to comment
Share on other sites

Hello again....

I got pretty close, but whenever I go to try and write my changes, it say access denied (as if I don't have admin privileges).

I will say that I am currently using WinSCP as this is a tool I'm familiar with. Am I missing something?

Incidentally, I noticed that my login via this tool would not accept my user-created Polisy login. It will only recognize admin/admin to let me into the device and display files and directories.

Any help would be appreciated

 

Link to comment
Share on other sites

Ok...I got quite a ways into this...

using vi I issued the commands, and edited the file, but I'm not sure it saved it in the right spot?

I reconnected the wifi board, but it's back to the original state where I cannot log into it. when saving inside of vi, did I need to use the sudo prefix? If so, can someone give me the command?

I will admit..this is stretching my expertise level to the limit. any thoughts or help would be appreciated

Link to comment
Share on other sites

  • 2 months later...
On 12/29/2019 at 2:00 PM, gviliunas said:

Problem solved!

I powered-down, disconnect the WLAN card and powered-back up. Polisy came up normally and fully configured  (I did not lose anything by pressing the pin-hole reset button)

With the WLAN card removed and Policy up and running, I manually edited the rc.conf file:

     #Network Interfaces (default)

     ifconfig_wlan0="WPA inet 192.168.1.158 netmask 255.255.255.0"  ----->>>> ifconfig_wlan0="WPA DHCP"

     ifconfig_wlan0_ipv6="NOAUTO"                                                                ----->>>> ifconfig_wlan0_ipv6="inet6 accept_rtadv"

 

     defaultrouter="192.168.1.210"                                                                     ------>>>> Removed this line

Now, powered-down, re-inserted the WLAN card, and powered-up.

Polisy came up fully configured and running properly. :)

Hi @gviliunas

Thanks for the instructions above.  I had the same issue, messing with WiFi.  I'm in the process of getting back to a starting point, reinstalling nodeservers after NOT being able to get into Polisy because of WiFi conflict.  

I just removed the WLAN card and was able to get back in, phew...

Now starting to modify the rc.conf file.

I might need to ping you, but I'll try to get the rc.conf back to a default state.

Thanks for the info!!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.8k
    • Total Posts
      369.9k
×
×
  • Create New...