Skip to content

Instantly share code, notes, and snippets.

@dkullmann
Created November 14, 2013 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkullmann/2b1d0c94c662e17a4137 to your computer and use it in GitHub Desktop.
Save dkullmann/2b1d0c94c662e17a4137 to your computer and use it in GitHub Desktop.
root@ip-10-110-218-88:/home/ubuntu# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
laptop
```
David-Kullmanns-Macbook-Pro:social dkullmann$ telnet ec2-54-204-105-70.compute-1.amazonaws.com 8080
Trying 54.204.105.70...
telnet: connect to address 54.204.105.70: Connection refused
telnet: Unable to connect to remote host
```
server
```
root@ip-10-110-218-88:/home/ubuntu# tcpdump port 8080 -vvv -s 0 -A
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
23:40:27.954649 IP (tos 0x0, ttl 42, id 63370, offset 0, flags [DF], proto TCP (6), length 64)
cpe-74-73-22-79.nyc.res.rr.com.41363 > ip-10-110-218-88.ec2.internal.http-alt: Flags [S], cksum 0x545a (correct), seq 277666598, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 1280353310 ecr 0,sackOK,eol], length 0
E..@..@.*...JI.O
n.X.......&........TZ.............
LP..........
23:40:27.954684 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)
ip-10-110-218-88.ec2.internal.http-alt > cpe-74-73-22-79.nyc.res.rr.com.41363: Flags [R.], cksum 0xbd9a (correct), seq 0, ack 277666599, win 0, length 0
E..(..@.@..q
n.XJI.O...........'P.......
```
root@ip-10-110-218-88:/home/ubuntu# ufw status
Status: inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment