Friday 4 January 2013

Bandwidth Usage Probe


How we monitor bandwidth usage in pfsense?
There are several methods for monitoring bandwidth usage, with different levels of granularity.
•             1 pftop
•             2 trafshow
•             3 Built-in Graphs
•             4 BandwidthD
•             5 Darkstat
•             6 NTOP
•             7 Monitoring on Multiple Interfaces
•             8 Netflow
•             9 vnstat
Now we discuss here about ntop.
Ntop
ntop is a network probe that shows network usage in a way similar to what top does for processes.ntop is based on libpcap  and it has been written in a portable way in order to virtually run on every Unix platform. If you need even more detail than that, you might need the ntop  package,(Ntop Package:
What is ntop? Ntop is a network probe that shows network usage in a way similar to what top does for processes. In interactive mode, it displays the network status on the user’s terminal. In web mode it act as a web proxy server, creating an HTML dump of the network
Ntop is a most important tool.
Go to the diagnose tab and select ntop
When we type LAN IP address of PFSense on browser it is necessary to add colon and 3000 port number for opening the ntop. Like as

192.168.0.2:3000
This address automatically redirect on this URL.
http://192.168.0.2:3000/sortDataIP.html


which can also be found under System > Packages. It can break down detail by IP, protocol, and so on. Once installed, it appears under Diagnostics > ntop. It will even track where connections were made by local PCs, and how much bandwidth was used on individual connections.






Ntop do something special for every ntop user. that given below.
•             Sort network traffic according to many protocols
•             Show network traffic sorted according to various criteria
•             Display traffic statistics
•             Store on disk persistent traffic statistics in RRD format
•             Identify the indentity (e.g. email address) of computer users
•             Passively (i.e. without sending probe packets) identify the host OS
•             Show IP traffic distribution among the various protocols
•             Analyse IP traffic and sort it according to the source/destination
•             Display IP Traffic Subnet matrix (who’s talking to who?)
•             Report IP protocol usage sorted by protocol type
•             Act as a NetFlow /sFlow collector for flows generated by routers (e.g. Cisco and Juniper) or switches (e.g. Foundry Networks)
•             Produce RMON-like network traffic statistics

Monday 24 December 2012

Proxy Servers


Proxy  Server & Proxy Filter Configuration:
Now we discuss here about the configuration of Proxy Server and Proxy Filter (Squid and Squid Guard). First of we discuss here what is “Squid”.


Squid:
This is a high performance web cache proxy server.
Now we come to the Configuration.
Go to the services tab and select Proxy Server.

Access Control:                192.168.0.0/24
Note: In access control section we can add two or more different networks. In this case proxy server allow internet access of both networks and both communicate to each other. Like as
                                                    192.168.0.0/24
                                                    192.168.1.0/24
                                                    192.168.2.0/24







Squid Guard:
This is a high performance web cache proxy server
Note: Squid installation is most important before the installation of SquidGuard. Now we go to next step Configuration.



If we need more feature like as “IP Blocking” “MAC Blocking” “Domain Filtering” “Timing schedule” “2 Different Network Communication” etc. Configuration
 add one Timing Schedule by hitting on + plus sign.
Name:                             Weekly Timing Schedule
Description:                  Weekly Timing Schedule Listed here
                                        Save Settings




Next go to the Target Categories Tab in Proxy Filter. Add one Target Categore by hitting on + plus sign.
Name:                            Domain_List
Domain List:                 facebook.com youtube.com twitter.com
Note: Every domain separated by a single space.
Save Settings




Next go to the ACL_Group tab in Proxy Filter. Add one ACL _Group by hitting on + plus sign.
Name:                           ACL_Group
Client (Source):          192.168.0.3-192.168.0.254
Timing:                        Weekly Timing Schedule




Target Rule:                Hit on play sign      stay on Target categories     Select timing rule and Deny
Save Settings


Next go to the Common ACL Tab in Proxy Filter. Add one Common ACL by hitting on + plus sign.
Target Rule:                           Access denied

Save Settings



Next go to the General Setting Tab in Proxy Filter. Add one General Setting  by hitting on + plus sign.
Enable:                           Add check sign
Apply Settings




Thursday 13 December 2012

ARP Table & Block Internet Access


ARP Table:

How find Mac IDs, Machine Name or Host Name, IP address and machine interface.
GO to Diagnostic tab and select ARP table option .ARP Table print screen given below.
ARP table helpful  for IP reservation, Mac blocking, IP blocking and many more.






How block IP address:

PFsense is a free BSD and Firewall router .Through this firewall router we block IP addresses that listed in dhcp list or network list.
There are two methods in which we restrict the internet access of clients or users.

First Method:
Go to Firewall tab and select Rule option. Add rule on lan interface .Select action as a “Block” Condition On interface Select “LAN” and then on protocol portion add “any” or “TCP/UDP” then go to Source section and select type as “Single host or Alias” and type on down line that IP address on which you want to block internet access .print screen given below.

Note*** First mach role will work so when we need to block any user we need to put rule at the top of the default rule in firewall section.
 
Action:                            Block
Interface:                       LAN
Protocol:                        Any
Type:                              ingle host or Alias
                                       192.168.0.10

  


Second Method:
In second method it is important that proxy server already installed. Like Squid and squid guard.
Go to the services tab and point out to the Proxy server. In a proxy server we use Access control tab. In access tab we have an option with the name of “Band Host addresses” where we add that IP addresses we need to restrict internet access and then save.

Note: Each IP address written to the next line by pressing the Space button. Like as
Band Host Address:                                    192.168.0.10
                                                                      192.168.0.11
                                                                      192.168.0.12
                                                                                             
 


PFSense Solutions