Thursday, June 30, 2016
Wednesday, June 29, 2016
BREXIT THE MOVIE
- Economic inequality (経済的不平等)
- Income equality
- Trade deal
- Trade agreement
- Eurocrat
- Bureaucrat (官僚)
- Magna Carta (マグナ・カルタ)
Sunday, June 26, 2016
iptables: Setting Up iptables: Accept Only Output and Reject Input
Command (Checking current settings for iptables):
$ sudo iptables -L -v
[sudo] password for username:
Result:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Command (Create a script):
$ cat ~/bin/set_firewall
Result:
#!/bin/bash
#Deleting every configurations
iptables -F
iptables -X
#Default policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
#Accept ping
iptables -A INPUT -p icmp -j ACCEPT
#Accept loopback
iptables -A INPUT -i lo -j ACCEPT
#Open using ports
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#After session is established, let packets through
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#Save the configurations
iptables-save
$ sudo iptables -L -v
[sudo] password for username:
Result:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Command (Create a script):
$ cat ~/bin/set_firewall
Result:
#!/bin/bash
#Deleting every configurations
iptables -F
iptables -X
#Default policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
#Accept ping
iptables -A INPUT -p icmp -j ACCEPT
#Accept loopback
iptables -A INPUT -i lo -j ACCEPT
#Open using ports
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#After session is established, let packets through
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#Save the configurations
iptables-save
Command (Add execution mode):
$ sudo chmod +x ./set_firewall
Command (Execute the script):
$ sudo ./set_firewall
Result:
# Generated by iptables-save v1.6.0 on Sun Jun 26 11:24:41 2016
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Sun Jun 26 11:24:41 2016
Command (Checking current settings for iptables):
$ sudo iptables -L -v
[sudo] password for username:
Result:
Chain INPUT (policy DROP 376K packets, 21M bytes)
pkts bytes target prot opt in out source destination
262 15437 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT all -- lo any anywhere anywhere
637 35360 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
17217 2332K ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 17561 packets, 3529K bytes)
pkts bytes target prot opt in out source destination
Command (Checking current settings for iptables):
$ sudo iptables -L -v
[sudo] password for username:
Result:
Chain INPUT (policy DROP 376K packets, 21M bytes)
pkts bytes target prot opt in out source destination
262 15437 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT all -- lo any anywhere anywhere
637 35360 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
17217 2332K ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 17561 packets, 3529K bytes)
pkts bytes target prot opt in out source destination
Saturday, June 25, 2016
Friday, June 24, 2016
Tim Burness: Monster Group
Tim Burness |
- Monster group (モンスター群)
- Sporadic group
- 808,017,424,794,512,875,886,459,904,961,710,757,005,754,368,000,000,000
- 196,883 dimensions
- 26 sporadic groups
ラベル:
Group theory,
Monster group,
People,
Sporadic group,
モンスター群,
群論
Thursday, June 23, 2016
Wednesday, June 22, 2016
Tuesday, June 21, 2016
Monday, June 20, 2016
Saturday, June 18, 2016
Friday, June 17, 2016
Thursday, June 16, 2016
Bramble Cay melomys: First Mammal Extinction from Climate Change
- Human-induced climate change
ラベル:
Australia,
Bramble Cay melomys,
Extinction,
Muridae,
Rodent,
オーストラリア,
ネズミ目,
ネズミ科,
絶滅
Roger Bowley: Log Tables
Log Tables:
Extra:
- John Napier
- Logarithm
- Difference engine (階差機関)
ラベル:
Difference engine,
Logarithm,
Mathematical table,
対数,
数表,
階差機関
Roger Bowley: Time Capsule
- Peter Mansfield (ピーター・マンスフィールド)
ラベル:
Helium,
Magnetic resonance imaging,
ヘリウム,
核磁気共鳴画像法
Wednesday, June 15, 2016
Tuesday, June 14, 2016
Monday, June 13, 2016
James Grime: The Opposite of Infinity: Infinitesimal (無限小)
James Grime |
- Infinitesimal (無限小)
- Abraham Robinson (アブラハム・ロビンソン)
- Hyperreal number (超実数)
- Non-standard analysis (超準解析)
ラベル:
Hyperreal number,
Infinitesimal,
Non-standard analysis,
無限小,
超実数,
超準解析
Hilarious Reverse Physics Debate: String Theory vs Loop Quantum Gravity
- String theory landscape
- Quantum gravity
- String theory
- Raphael Bousso
- Carlo Rovelli
- "It's true by definition"
- "Imagine Chemistry did not exist"
Sunday, June 12, 2016
John Chapman: Lights and Shadows in Graphics
- Diminishing returns (収穫逓減)
ラベル:
Diminishing returns,
収穫逓減
Saturday, June 11, 2016
Friday, June 10, 2016
Uri Hasson: This is your brain on communication
Subscribe to:
Posts (Atom)