Välkommen Gäst. Var snäll och logga in eller registrera dig som ny medlem.

Logga in med användarnamn, lösenord och önskad sessionslängd

Nyliga inlägg

Sidor: [1] 2 3
2
Windows / Autostart a Set of Programs after System Boot
« Senaste inlägg av Admin skrivet juni 11, 2016, 12:52:23 AM »
C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
5
IT / Filezilla
« Senaste inlägg av Admin skrivet januari 24, 2016, 10:35:24 PM »
Cant download because the "download" is grayed out.


Solution: Check on the right side and see the location that you're trying to download to.
6
Servers / PFsense
« Senaste inlägg av Admin skrivet november 12, 2015, 10:47:26 PM »
How to clear Lightsquid report cache

1- In Pfsense web portal ----> Status--->Services and stop squid and squidguard
2- go to diagnostics--->command Prompt
3- in Execute Shell command type rm -rf /var/squid/cache/*


How to clear Squid cache

cd /var/squid/cache
rm -rf *
7
IT / Locked ouf of PFSENSE
« Senaste inlägg av Admin skrivet september 29, 2015, 03:01:23 PM »
Locked out of Firewall

Posted by Jeremy Porter on 25 November 2013 12:36 PM
 

There are a few tricks you can use to get back into the WebGUI should you find your access removed.



Contents
•1 Forgot Password
•2 Forgotten Password with Locked Console
•3 HTTP vs HTTPS confusion
•4 Blocked access with firewall rules
•5 Remotely Circumvent Firewall Lockout by Temporarily Changing the Firewall Rules
•6 Add firewall rule at the command line with easyrule
•7 Remotely Circumvent Firewall Lockout With SSH Tunneling
•8 Squid Took Over My HTTP Port!
 

Forgot Password

If you forgot the password for the system it can be reset easily with console access. Get to the physical console (Keyboard/Monitor, or Serial) and use option 3) to reset the WebGUI password.

Forgotten Password with Locked Console

If the console is password protected and you do not know the password, all is not lost. It will take a couple reboots to accomplish, but it can be fixed with physical access to the console:
•Reboot the pfSense box
•Choose option 4 (Single User Mode) from the loader menu (The one with the ASCII pfSense logo)
•Press enter when prompted to start /bin/sh
•Remount the drive as rewritable:
/sbin/mount -o rw /

If you made multiple partitions/slices you may just want to mount everything:/sbin/mount -a -t ufs

•Run the built-in password reset command:
/etc/rc.initial.password

•Follow the prompts to reset the password
•Reboot

You should now be able to access the system with the default password (admin / pfsense)

Note: The ease of this process should serve as a reminder that anyone with physical access to your pfSense system can bypass basic security measures like password protecting the console. If you are password protecting the console to keep out anything more than accidental logins/low-knowledge users, you may want to rethink your security strategy.

HTTP vs HTTPS confusion

Ensure you are connecting with the proper protocol, either HTTP or HTTPS.

Starting with pfSense 2.0, the default WebGUI protocol is HTTPS.

If one doesn't work, try the other. You may find that you need to try the opposite protocol on the others port, like so:
•http://pfsensebox:443
•https://pfsensebox:80

If you need to reset this from the console, reset the LAN IP, enter the same IP, and it will prompt to reset the WebGUI back to HTTP.

Blocked access with firewall rules

If you blocked yourself out of the WebGUI remotely with a firewall rule, there may still be hope. This shouldn't happen from the LAN as there should be an anti-lockout rule that maintains access to the WebGUI from that interface.

Having to walk someone on-site through fixing the rule is better than losing everything!

Remotely Circumvent Firewall Lockout by Temporarily Changing the Firewall Rules

You could (very temporarily) disable firewall rules by typing:
pfctl -d


Once you have regained the necessary access, turn the firewall back on by typing:
pfctl -e


Alternately, the loaded ruleset is left in /tmp/rules.debug. You can edit that to fix your connectivity issue and reload those rules like so:
pfctl -f /tmp/rules.debug


After that, do whatever work you need to do in the WebGUI to make the fix permanent. (From billm in this forum post)

If you do not want to disable pf, but you still need to get in, you can run the following shell command to add an "allow all" rule on the WAN.
pfSsh.php playback enableallowallwan


This is VERY DANGEROUS to keep around, so once you have regained access to the GUI with proper rules, be sure to delete this "allow all" rule.

Add firewall rule at the command line with easyrule

You can use the command line version of easyrule to add a firewall rule to let you back in.
# easyrule pass wan tcp x.x.x.x y.y.y.y 443


That would pass in from the remote IP x.x.x.x to your WAN IP, y.y.y.y on port 443. Adjust as needed.

Remotely Circumvent Firewall Lockout With SSH Tunneling

If you blocked access to the WebGUI remotely (which is smart to do, anyhow) but you still have access with SSH, then there is a relatively easy way to get in: SSH Tunneling.

If the WebGUI is on port 80, set your client to forward local port 80 (or 8080, or whatever) to remote port "localhost:80", then point your browser to http://localhost:80 (or whichever local port you chose.) If your WebGUI is on another port, use that instead. Obviously, if you are using https you will still need to use https to access the WebGUI this way.

Here is how to setup a port 80 tunnel in PuTTY:

PuTTYTunnel.jpg

Fill out the options as shown, then click add. Once you connect and enter your username/password, you can access the WebGUI using your redirected local port.

Squid Took Over My HTTP Port!

If you accidentally configure squid to use the same port as the WebGUI, and then cannot get back in to fix the configuration, you may need to fix it as follows:
•Connect to the pfSense system console with ssh or physical access
•Start a shell, typically option 8
•Terminate the squid process like so:
/usr/local/etc/rc.d/squid.sh stop

•If that doesn't work, try it this way:
squid -k shutdown


or
killall -9 squid


Once the squid process is fully terminated, you should be able to regain access to the WebGUI. Be aware that you may need to work quickly, or repeat the shutdown command, as squid may be automatically restarted.

Feel free to add your own tips and tricks to this list!
 
8
IT / PIA - Privateinternetaccess Windows 10 Problem with startup
« Senaste inlägg av Admin skrivet september 15, 2015, 01:05:08 AM »

.  Hold the windows key+R and bring up the run dialog box and type in "regedit" and hit enter




.  Navigate to this registry key location:




"hkey_local_machine\software\wow6432node\microsoft\windows\currentversion\run"





  Right click on the right side of the panel and go to New->String value and that will create a new string value that you can rename to "pia" for example.




.  Double click your new string value and under where it says "value data" type in the dialog box the location of pia_manager.exe.  The default location should be:




"C:\Program Files\pia_manager\pia_manager.exe"




.  That's it!  You're done.  And now you can restart your PC to check and see that private internet access (pia_manager) now starts up automatically with Windows 10!




I hope you enjoyed this tutorial and you can share this information with your customers and/or integrate it into your program in an update or new version.




Please do email me back as I would like to know if this helped you in any way and if you are going to utilize my tutorial!


9
IT / Användbara program vid felsökning
« Senaste inlägg av Admin skrivet juni 17, 2015, 02:28:15 AM »
10
Windows / How to Make a Bootable USB Disk for Windows 8, Windows 7, Windows XP
« Senaste inlägg av Admin skrivet juni 12, 2015, 01:12:49 AM »
How to Make a Bootable USB Disk for Windows 8, Windows 7, Windows XP


Ever faced a virus attack on your PC? Have an old laptop that refuses to boot up one fine day, throwing up errors such as bootmgr missing or NTLDR missing? Your best option in both these cases may be to reinstall Windows on your computer. When you first use your computer, you're prompted to create a DVD backup of your Windows install, but keeping a DVD safely and not losing it can be a bother. Being able to reinstall Windows using a USB you just keep nearby can be a big help, and to do this all you need to do first is create a bootable Windows USB drive. This is also very helpful if you bought a compact laptop - many smaller new devices don't have a DVD drive.

Remember you'll need a working Windows install (any version) to do this - if your computer won't boot, use a friend's to follow these steps.

Here's everything you need to know about the process.

Windows 7

The first thing you need is a Windows ISO or an image file. This is a virtual copy of a Windows installation DVD and you can source this legally from Microsoft without a product key. Here are the links for various edition of Windows 7.

Windows 7 Ultimate (32 bit)

Windows 7 Ultimate (64 bit)

Windows 7 Professional (32-bit)

Windows 7 Professional (64-bit)

Windows 7 Home Premium (32-bit)

Windows 7 Home Premium (64-bit)

You'll still need a valid product key when you reinstall Windows so make sure you keep that safely.

Once you've downloaded the Windows 7 ISO file, follow these steps to burn it to a pen drive.

1.Download the Windows USB/DVD tool from here and run it.


2.Click Browse and select the downloaded Windows 7 ISO file.


3.Click Next.


4.The next page asks whether you want to save this file to a USB or a DVD. Click USB device.


5.Connect a pen drive with at least 4GB space to your computer. Make sure you back up all data on the pen drive to your computer as it will be erased during this process.


6.Select your pen drive from the drop down menu and click Begin copying.


7.When this process is complete, you'll have a bootable Windows 7 USB ready.

microsoft_usb_dvd_tool.jpg
Windows 8

1.Download the Windows Installation Media Creation Tool from here and run it.


2.Select the Language from the first drop-down menu.


3.Then select the Edition of Windows you want to install. Your choices are: Windows 8.1, Windows 8.1 N, Windows 8.1 Pro, Windows 8.1 Pro N and Windows 8.1 Single Language.


4.In the third drop-down menu next to Architecture choose whether you want a 32-bit or 64-bit version of the OS. If your computer has less than 3GB RAM, then pick 32-bit. If it has more than 3GB RAM, pick 64-bit. If you need to see which version you're running right now, right click on My Computer and select Properties. There, you'll see the information you need under Windows Edition and System type respectively.


5.Click Next.


6.Plug in a USB drive to your computer. Make sure that it has at least 4GB space. If there's any important data on the drive, create a backup as this process will erase the pen drive completely.


7.Now you'll be asked to choose where to save the ISO file. Choose USB flash drive.


8.Click Next.


9.You'll see a list of USB drives connected to your computer. Select your pen drive from the list and click Next.


10.Now the Media Creation Tool will begin downloading the ISO straight to your pen drive. When the download completes, click Finish.

windows_8_iso.jpg
Windows XP

1.Go to the Windows XP SP3 ISO download page.


2.Select the language from the drop-down menu and click the big red Download button.


3.Download a free programme such as ISOtoUSB to burn the image to a pen drive. There are a lot of apps that let you do this and you can use any of these. We found ISOtoUSB easy to use and light, so we picked it over others.


4.Install ISOtoUSB on your computer and open it.


5.Click Browse and select the downloaded Windows XP ISO file.


6.Plug in a pen drive with at least 1GB free space to your computer. All data on this pen drive will be erased so make sure you have a backup.


7.In ISOtoUSB, select the pen drive from the drop-down menu.


8.Click the checkbox next to Bootable


9.Click Burn.


When the process is complete, a bootable Windows XP USB drive will be ready.

Booting and installing Windows

Now you have a bootable pen drive ready, you can boot off this drive and install Windows. Installing Windows is quite straightforward, but the steps leading up to it may vary a little depending on the manufacturer of your computer. We've added a brief explanation below on how to do this.

When you're booting up the computer, on the very first screen, you'll see a text which says something like "Press Del to Enter BIOS". Press whatever key is listed - this is usually Delete, or one of F1, F2, F8, or F12 - when the computer is booting, to enter the BIOS. There, you need to find a menu like Advanced BIOS settings, and select USB as the primary boot device. Now, you need to save and exit BIOS - the key to do so will be listed on-screen, but it is usually F10. Plug in the USB, and when you reboot, you'll start the install process for Windows on your computer. Follow on screen instructions to install Windows 8, Windows 7, or Windows XP.





Source: http://gadgets.ndtv.com/apps/features/how-to-make-a-bootable-usb-disk-for-windows-8-windows-7-windows-xp-649811
Sidor: [1] 2 3