First get the json with all the IP ranges
wget https://developers.google.com/static/crawling/ipranges/common-crawlers.json -O google.txt
Use this script to get the results. It may be smart to grep on "time=" to just get the IPs that returned results/were pingable.
for ip in `cat google.txt |grep ipv4|cut -f 2 -d :|sed 's#"##g'|cut -f 1 -d /`; do
o1=`echo $ip|cut -f 1 -d .`
o2=`echo $ip........
This is important if you need public access to internal IPs such as at your office and don't want to use a VPN just to SSHinto different servers:
Below forwards the port "10001" to the IP192.200.5.53 on port 22 (of course adjust it to your needs).
iptables -t nat -A PREROUTING -p tcp --dport 10001 -j DNAT --to-destination 192.200.5.53:22
Remember to enable MASQUERADE on your NAT IPs or they won't be able to talk to the outside world (........
This is something I often setup for clients because it's very helpful for people in datacenters, this allows custom OS installs on demand, you can customize it more by using kickstart etc.. but here's a base I use before customizing more:
This little script below will install everything you need to get booting by PXE Linux.
It also assumes you set a local IP (be sure not to overwrite your existing IP) on eth0:0 (note the :0) as 192.168.1.10 and it........