News:

The Latest electronic and computer Tips that work!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - branx86

#261
Linux Fixes / Add Ports to Iptables (aka hole in firewall)
September 16, 2015, 11:40:49 AM
   OPens Port
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

Accept tcp packets on destination port 6881 (bittorrent)
iptables -A INPUT -p tcp --dport 6881 -j ACCEPT


Accept tcp packets on destination multiple ports 6881-6890
iptables -A INPUT -p tcp --dport 6881:6890 -j ACCEPT

This will open up port 22 (SSH) to all incoming tcp connections which poses a potential security threat as hackers could try brute force cracking on accounts with weak passwords. However, if we know the IP addresses of trusted remote machines that will be used to log on using SSH, we can limit access to only these source IP addresses. For example, if we just wanted to open up SSH access on our private lan (192.168.0.x), we can limit access to just this source IP address range:

Accept tcp packets on destination port 22 (SSH) from private LAN
iptables -A INPUT -p tcp -s 192.168.0.0/24 --dport 22 -j ACCEPT
#262
Linux Fixes / Delete single iptables rule
September 16, 2015, 11:35:07 AM

  To Delete and entry
iptables -D INPUT -s 127.0.0.1 -p tcp --dport 111 -j ACCEPT

  To list all entries : iptables -vnL


#263
Windows Fixes / RDP on Win7 (aka tsweb)
September 16, 2015, 10:21:46 AM
No sense in reinventing the wheel Mike Jackson's site does a good job of explaining.     http://www.mickyjay.co.uk/?p=29


1.   Go to Control Panel
2.   Programs and Features > Turn Windows features on or off
3.   Internet Information Services and select the check boxes for Web Management Tools & World Wide Web Services.
4.   Download and install tswebsetup.exe from the following location:
http://www.microsoft.com/downloads/d...DisplayLang=en

5.   Go to Control Panel > Administrative Tools > Internet Information Services (IIS) Manager
[NOT IIS 6.0 Manager]
6.   Expand the tree and click on Default Web Site
7.   On the right side of the screen under Edit Site, click Bindings
8.    Click on the web site and click Edit
9.    Change the port number to your preferred port designation (3389 is the default RDP)
10.  Under Manage Server on the same screen click "Start the service"
11.   Set-up your router and firewall to accept your designated port

To connect to the Windows 7 machine from a remote computer simply go to your internet browser (Internet Explorer is recommended because of the nature of Microsoft web based apps) and enter the URL as follows:

http://Server IP Address : port no/tsweb

For example:  http://192.168.0.1:3389/tsweb