Showing posts with label ip. Show all posts
Showing posts with label ip. Show all posts

12 March, 2013

Manually assign (add) fixed (static) IP on FreeBSD


Manually assign/add fixed/static IP on FreeBSD:
 
ifconfig em0 inet  netmask 
route add default 
/etc/netstart

e.g.

ifconfig em0 inet 192.168.0.10 netmask 255.255.255.0
route add default 192.168.0.1
/etc/netstart

Make changes permanently :
As an example of the above, insert the below parameters into /etc/rc.conf :

ifconfig_em0="inet 192.168.0.10 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
hostname="hostname.domain.com"

Remove assigned IP address from network interface

ifconfig  down delete
e.g.

ifconfig em0 down delete

23 March, 2010

how to kill active TCP connections

You could also use IPTables which works on all Linux distros.

For dropping traffic from a single host I use:

Code:
iptables -I INPUT -s  -j DROP
Just replace with the address of the host that you want to drop traffic from.

22 February, 2008

Static (manual) IP set up on Linux in CLI (short version)

by Morten Holmensen

If you want to manual set up an IP address in Linux,
it could be one of ways to set this up.

open terminal window, probely you should be a root or "sudo" to do this,


Adding static IP and netmask
  • sudo ifconfig ethX 123.45.67.89 netmask 255.255.255.0
  • echo nameserver 123.45.67.89 >> /etc/resolv.conf


Adding Gateway
 
  • sudo route add default gw 172.16.236.0


----------------------------------->

01 February, 2008

What is a DNSBL?.

What is a DNS BlackList?
by Morten Holmensen

A DNSBL is a DNS (domain name service)-based spam blocking list. Some people call them blacklists, while others call them blocklists.

These blacklists are IP address-based. This means that they contain IP addresses, generally of email servers that you might receive spam from, or that the blacklist maintainer has indeed received spam from. There are dozens of such lists available, all compiled with different criteria, at every conceivable point in the sanity spectrum. Some lists work better than others, and some list maintainers are more trustworthy and respectable than others.

The original (and still primary) use for DNSBLs is to block mail. Most mail servers nowadays have DNSBL support (either built in, or through use of a plug-in) that allows a mail server administrator to block mail from sites listed on a specific DNSBL. The site would choose to do this as part of their attempt to reduce the amount of spam their users would receive.

More recently, DNSBLs are often used as a part of spam scoring system, such as SpamAssassin. If you’re listed on a spam blacklist that is referenced in a spam scoring system, your spam score could be increased by some amount. (The amount varies and is often configurable.) If that, in addition to other scoring tests performed, makes an email’s score rise above a certain level, it could be discarded, or routed to the spam folder.

Note: you might hear people refer to “RBLs” when talking about spam blocking. The first DNSBL was called the RBL, created by a company I once worked for, the Mail Abuse Prevention System (MAPS). MAPS claims “RBL” as a service mark, but as far as I can tell, anybody using the term RBL is usually using it interchangeably with DNSBL.