Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 264
» Latest member: TbcPanda
» Forum threads: 180
» Forum posts: 1 035

Full Statistics

Online Users
There are currently 8 online users.
» 0 Member(s) | 8 Guest(s)

Latest Threads
hi guys i am new on web
Forum: Česky
Last Post: rardcar
24.10.2019 02:42
» Replies: 0
» Views: 85
Goldenpeso
Forum: Česky
Last Post: RaymondEdurb
19.9.2019 11:08
» Replies: 0
» Views: 132
Call Of Duty: PHP Rules C...
Forum: Game tools
Last Post: Donatosdog
8.8.2018 04:52
» Replies: 72
» Views: 48 064
Proxy Guard
Forum: Bash scripts
Last Post: Donatosdog
8.8.2018 04:24
» Replies: 1
» Views: 3 772
Find apps blocking APK in...
Forum: Guides / Návody
Last Post: Donatosdog
8.8.2018 01:44
» Replies: 4
» Views: 4 241
Google AdSense Extension ...
Forum: Other
Last Post: SaRan
18.7.2018 07:42
» Replies: 34
» Views: 32 267
Call Of Duty: PHP RCon 2....
Forum: Game tools
Last Post: Brenton
14.3.2018 10:39
» Replies: 385
» Views: 196 282
Call Of Duty 2: Kafemlyne...
Forum: Game tools
Last Post: Ashus
6.1.2018 04:17
» Replies: 75
» Views: 44 072
Availability
Forum: Bash scripts
Last Post: Bethune
22.5.2017 01:59
» Replies: 1
» Views: 3 463
How to calibrate low-end ...
Forum: Guides / Návody
Last Post: Ashus
7.5.2017 01:30
» Replies: 0
» Views: 2 062

 
  OpenVPN configuration for LAN gaming
Posted by: Ashus - 31.12.2014 05:26 - Forum: Guides / Návody - Replies (4)

To be able to play LAN games over OpenVPN tunnel, please follow OpenVPN manual and create your unique certificates, one for server and one for players.
Also create one additional certificate using openvpn --genkey --secret tls-auth.key for handshakes.

On the server machine you also have to open the port in public IP / redirect the port to your internal PC.
The situation is as follows: a minimum of two players both have Windows, at least one has to have public IP/open port (42222). All other clients connect to him and they make a fast and secure virtual LAN network for games. None of them uses the chosen IP range for local network, in this example 10.5.5.0/24.

Use this server config:

Code:
port 42222
proto udp
dev tap
tun-ipv6

tls-auth tls-auth.key 0
ca       lan-ca.crt
cert     lan-server.crt
key      lan-server.key
dh       lan-dh2048.pem

tls-version-min 1.2
cipher AES-256-CBC
auth SHA256
tls-cipher TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256:TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256
remote-cert-eku "TLS Web Client Authentication"

server 10.5.5.0 255.255.255.0

server-ipv6 fc11:0:1054::/64
push route-ipv6 fc11:0:1054::/64

duplicate-cn
keepalive 10 120

comp-lzo
persist-key

route-metric 1
route 0.0.0.0 0.0.0.0 10.5.5.1 10001

push "route-metric 1"
push "route 0.0.0.0 0.0.0.0 10.5.5.1 10001"

client-to-client

status status-server-lan.log 60

and this client config:
Code:
remote 111.111.111.111
float

tls-client
port 42222
proto udp
dev tap
tun-ipv6
nobind

resolv-retry infinite

tls-auth tls-auth.key 1
ca       lan-ca.crt
cert     lan-client.crt
key      lan-client.key

tls-version-min 1.2
cipher AES-256-CBC
auth SHA256
tls-cipher TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256:TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256
remote-cert-eku "TLS Web Server Authentication"

pull dhcp-options

mute 10
comp-lzo
verb 1

Change 111.111.111.111 to match your server's IP. The predefined routes will take care of priorities and in most games the players should see each other and the server.
Just one more thing - you need to make sure the virtual device is given the highest priority (even above LAN or WiFi). You can do so by renaming your OpenVPN TAP network adapter to "OpenVPN" and running these commands from command line:
Code:
netsh int ipv4 set interface OpenVPN metric=2
   netsh int ipv6 set interface OpenVPN metric=2

I recommend creating gameserver on the server machine to minimize latency. And the very last thing would be to add the network range to trusted networks in your firewall (once and for good).


  How to turn off camera sounds (shutter and focus) on CM11
Posted by: Ashus - 16.12.2014 09:11 - Forum: Other - No Replies

Copy sh script using ES File Explorer (with root) to folder /system/addon.d . Set up rights to be 770 (rwxrwx---).
Re-flash firmware (upgrade).
Tested on CyanogenMod 11 (Android 4.4.4 KitKat) od NovaFusion (20141214).


Nahrát sh skript pomocí ES File Exploreru (s rootem) do /system/addon.d . Nastavte práva na 770 (rwxrwx---).
Flashnout znovu firmware (aktualizovat).
Testováno na CyanogenModu 11 (Android 4.4.4 KitKat) od NovaFusion (20141214).



Attached Files
.zip   ashus-camera-sound.zip (Size: 714 bytes / Downloads: 78)

  Windows 7 - přepínátko priority mezi IPv4 a IPv6
Posted by: Ashus - 11.6.2014 02:42 - Forum: Other - No Replies

V přiloženém ZIPu jsou dva reg soubory pro modifikaci registru Windows. Jeden nastavuje prioritu IPv4, druhý zpátky na IPv6, tedy pokud máte dualstack spojení internetu, můžete si zvolit, které spojení se má používat prioritně. Po aplikování je nutný restart systému.

V případě tunelování IPv6 nebo pokud potřebujete používat VPN spojení, které je nakonfigurováno čistě v IPv4 k sítím, které jsou zároveň dostupné i přes IPv6 se to může hodit.



Attached Files
.zip   DualStack.zip (Size: 1 KB / Downloads: 71)

  Svatební web Silberovi
Posted by: Ashus - 20.5.2014 06:00 - Forum: Webové stránky a aplikace - No Replies

Technologie: PHP/troška MySQL/JS fotogalerie

   


  Nastavení minimálních oprávnění v podsložkách
Posted by: Ashus - 21.4.2014 02:52 - Forum: Bash scripts - No Replies

Rekurzivní nastavení oprávnění souborů na 664 a složek do 10. úrovně na 775 se provádí tímto:

Code:
chown -R www-data:www-data *
chmod -R 640 *
find . -maxdepth 10 -type d -exec chmod 750 {} \;


  MiniUPNPd patched for routed network
Posted by: Ashus - 18.3.2014 07:14 - Forum: Other - No Replies

If you have tried to forward UDP packets of UPNP (dynamic NAT port forwarding) to another network (you may have NAT further away from you), you need a little workaround for miniupnpd server to accept addresses that are not bound to any interface. The message in debug reads following: miniupnpd[3605]: get_lan_for_peer(): 192.168.5.25:1900 not found !


Let's say we have main router A, that NATs traffic of clients at A and router B. Router A also shapes traffic, so we can't use NAT on B natively and just forward everything to A. We need to forward UPNP and nat-PMP requests from clients of B to the router A. Clients of A have IP range 192.168.1.0/24, clients of B 192.168.5.0/24. The router A has IP 192.168.1.1 and 192.168.2.1 on p2p link with B. Router B has IPs 192.168.5.1 and 192.168.2.2 on p2p link with A.

Getting NAT-PMP to work is really easy, only one line is required in the firewall of B:

Code:
# NAT-PMP relay
iptables -t nat -A PREROUTING -i eth0 -p udp -d 192.168.5.1 --dport 5351 -j DNAT --to-destination 192.168.2.1


To route multicast traffic, you need to use smcroute on B. Configuration must be done per-IP:
[code]function smcroute_ip {
    smcroute -a "$2" "$1" 239.255.255.250 wlan0
}

smcroute -a wlan0 192.168.2.1 239.255.255.250 eth0

for (( i = 2 ; i 



Attached Files
.tgz   miniupnpd-1.8.20140523-ashus.tgz (Size: 190,68 KB / Downloads: 3)

  Force Download 1.0.8
Posted by: Ashus - 21.10.2013 05:47 - Forum: Opera Blink extensions - No Replies

My creation from scratch.

  • enter any URL and no matter what would happen otherwise, it _will_ be downloaded (ignoring PDF or any other plugins)
  • requests are monitored, scanned for video or audio media files, links are automatically added to recent media list of 10
  • it can be safely used to download videos from trailers.apple.com or any sites using embedded mp4 files
  • no, youtube is not supported as it doesn't send complete files
  • multilingual (EN/CZ), more translations are welcome


.crx   Force Download 1.08.crx (Size: 30,91 KB / Downloads: 613)

   
Verified and published on Chrome extensions (also for Vivaldi) or Opera extensions.


  Easy Auto Refresh 2.9 fixed
Posted by: Ashus - 24.9.2013 05:11 - Forum: Opera Blink extensions - No Replies

Fixes the Easy Auto Refresh extension.

  • removed tracking code
  • removed unclickable icon from omnibar displayed on opera:// pages
  • icons in omnibar changed to something more fitting to Opera (gray/red)
  • default timeout changed from 10 sec to 300 sec (=5 min)
  • registration and full functionality retained (not cracked)


[Image: IHjhiN3S2-lEMF3-ObPsRshFlys2Johu7IRyYRRc...00-e365-rw]

To install, drag and drop to Opera, then enable extension.



Attached Files
.nex   Easy Auto Refresh 2.9 fixed.nex (Size: 103,61 KB / Downloads: 1537)

  Close Tab Button 0.2
Posted by: Ashus - 24.9.2013 04:33 - Forum: Opera Blink extensions - No Replies

Remade the Close Tab Button extension (not published anymore, it was distributed with manifest v.1).

  • it is a button!
  • it closes current tab
  • it is a button that doesn't move (well if you download something it moves a tiny bit..), mimics MDI close button
  • you don't need to look for the correct X to close current tab

.nex   Close Tab Button 0.2.nex (Size: 1,58 KB / Downloads: 91)

To install, drag and drop to Opera, then enable extension.
Until Opera developers implement reordering of extensions, you have to do the following to make it move to the right:
  • make a backup of Preferences file from profile dir
  • open the file in notepad
  • find "toolbar": [ - reorder the list to make this extension the last in the list
  • save it



Attached Files Thumbnail(s)
   

  List of Opera extensions I use
Posted by: Ashus - 24.9.2013 04:12 - Forum: Opera Blink extensions - No Replies

Here is my list, only stuff I need :? :