- build
- sudo apt-get install git gcc
- sudo apt-get install automake autoconf
- git clone git://github.com/rriley/tsunami-udp.git
- cd tsunami-udp
- ./recompile.sh
- sudo make install
- run
- you'll need a port open to allow direct connection from client to server
- unfortunately, this doesn't work through NAT firewalls alone
- firewall / port forwarding
- to server, TCP, 46224 by default
- to client, UDP, 46224 by default
- start up server
- tsunamid myfile.gz
- connect with client
- tsunami set rate 5M connect myserver.domain.com get myfile.gz
- it will flood your connection if you dont set rate properly
- documentation
- http://tsunami-udp.cvs.sourceforge.net/viewvc/tsunami-udp/docs/USAGE.txt
- splits files automatically
- allows wildcards when running server and client commands, "*", namely
- client will auto-find all files served, one after the next
- use forward-slash, i.e. get \*, for client command
- so bash doesn't intrepret the asterisk
- undocumented
- doesn't do subdirectories, better tar that up and have plenty of disk space
Showing posts with label firewall. Show all posts
Showing posts with label firewall. Show all posts
Wednesday, 19 June 2013
tsunami-udp: faster than rsync
Saturday, 11 May 2013
Saturday, 23 February 2013
JMX ports to open in firewall for jconsole to Cassandra
- Port 7199
- Used for about a dozen packets when JMX connection first made
- A handshake of sorts
- Probably sets up the agreement on which high port to connect to, used below
- Similar to SIP
- Similar to old FTP
- Not used again after initial handshake
- Port range 55000 to 55999
- To see these packets, on JVM server
- tcpdump -nn ! port 22 and host <jconsole client IP> (not literal, replace this)
- If jconsole starts showing graphs, you are connected
Tricks and Tips
- If you don't want to expose 1000 ports to the world for some reason
- Open all ports on firewall in front of JVM server
- On JVM server: tcpdump -nn ! port 22 and host <jconsole client IP>
- Start jconsole connection on client machine
- Watch to see which port JVM server is trying to reach jconsole client via
- Close all but that port in the firewall, will be between 55000-55999
- Do a local experiment to a local JVM JMX-able application if unsure of good jconsole connection result
- Get your external IP from where you are running jconsole client
- CLI: curl http://ipaddr.me
- Or web browser: http://ipaddr.me
Monday, 17 September 2012
Debugging pfsense firewall rules clearly and easily
- Status -> System logs -> Settings
- Make sure Log packets blocked by the default rule is not checked
- Check Show log entries in reverse order
- Increase to 500 Number of log entries to show
- Status -> System logs -> Settings -> Firewall
- Dynamic View
- You don't have to hit refresh
- Normal View
- Make sure to hit refresh if you expect a rule was triggered by your or others actions
- Firewall -> Rules
- Under the interface(s) you want to debug
- Create a default deny rule at the end of the rule list
- Choose Log packets that are handled by this rule
- Give the rule a very unique name
- For other rules you want to debug
- Choose Log packets that are handled by this rule
- Give the rule a very unique name
- Hang out on Status -> System logs -> Firewall -> Dynamic View
- Tweak rules until you see the result you desire
- Packets blocked that should be blocked
- Packets allowed that should be allowed
- Click on the red/green blocked/accepted icons
- Will show a pop-up for the rule triggered, showing the unique name you gave to the rule
- If necessary, go back and give more unique names to rules to distinguish them from one another
Subscribe to:
Posts (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
kubectl --cert=/tmp/tls.crt --key=/tmp/tls.key create secret tls tls-wc-ingress
-
apt-get install exim4 dpkg-reconfigure exim4-config Select: internet site; mail is sent and received directly using SMTP IP-addresses...
-
NOTE: unbound is now available via epel repo on Amazon Linux install requirements yum groupinstall "Development Tools" yum i...