Home
DevCentral
Search
Configure Global Search
Log In
Transactions
P80
Change Details
Change Details
Old
New
Diff
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>KDE Paste</title> <link rel="alternate" type="application/rss+xml" title="RSS" href="https://paste.kde.org/feed" /> <link href="//cdn.kde.org/img/favicon.ico" rel="shortcut icon" /> <link href="//cdn.kde.org/css/bootstrap.css" rel="stylesheet" /> <link href="//cdn.kde.org/css/bootstrap-responsive.css" rel="stylesheet" /> <link href="//cdn.kde.org/css/bootstrap-stickynotes.css" rel="stylesheet" /> <script type="text/javascript" src="//cdn.kde.org/js/jquery.js"></script> <script type="text/javascript" src="//cdn.kde.org/js/jquery.cookie.js"></script> <script type="text/javascript" src="//cdn.kde.org/js/jquery.scrollto.js"></script> <script type="text/javascript" src="//cdn.kde.org/js/bootstrap.js"></script> <script type="text/javascript" src="//www.google.com/jsapi"></script> <script type="text/javascript" src="https://paste.kde.org/assets/neverland/js/stickynotes.js"></script> <script type="text/javascript"> var ajaxUrl = "https://paste.kde.org/ajax"; var ajaxNav = false; </script> </head> <body data-toggle="ajax" data-context="ShowController"> <div class="loader"> <span class="well well-small well-white well-loader"> <i class="icon-time icon-blue"></i> Loading </span> </div> <header class="navbar navbar-static-top Neverland" role="navigation"> <div class="navbar-inner"> <div class="container"> <div class="navbar-header"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="https://paste.kde.org"> <img src="//cdn.kde.org/img/logo.plain.small.png"> KDE Paste </a> </div> <div class="nav-collapse"> <ul class="nav nav-navbar pull-right"> <li ><a href="https://paste.kde.org/all"><i class="icon-list"></i> Archives</a></li><li ><a href="https://paste.kde.org/trending"><i class="icon-fire"></i> Trending</a></li><li ><a href="https://paste.kde.org/docs"><i class="icon-book"></i> Docs</a></li><li ><a href="https://paste.kde.org/user/login"><i class="icon-user"></i> Login</a></li> </ul> </div> </div> </div> </header> <div class="container"> <section id="show"> <div class="row-fluid"> <div class="span12"> <div class="pre-info pre-header"> <div class="row-fluid"> <div class="span5"> <h4> ipv6enabler.sh </h4> </div> <div class="span7 align-right"> <a href="#" class="btn btn-success" data-toggle="ajax" data-component="shorten" data-extra="pssfexula">Get short URL</a> <a href="#" class="btn btn-success" data-toggle="wrap">Wrap</a> <a href="https://paste.kde.org/pssfexula/hbrhj8/raw" class="btn btn-success">Raw</a> <a href="https://paste.kde.org/rev/pssfexula" class="btn btn-success">Revise</a> <a href="mailto:?subject=KDE+Paste%3A+https%3A%2F%2Fpaste.kde.org%2Fpssfexula%2Fhbrhj8%2Fra" class="btn btn-warning" data-toggle="tooltip" title="Share"><i class="icon icon-envelope icon-white"></i></a> </div> </div> </div> <div class="well well-small well-white pre"> <div class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">#!/bin/sh</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">#SOCATBIN="/usr/bin/socat"</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">SOCATBIN="/storage/.kodi/addons/tools.socat/bin/socat"</div></li> <li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">TCPPORTS="9981 9982"</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">UDPPORTS="9777"</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"># TCP Ports</div></li> <li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">for PORT in $TCPPORTS; do</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> nohup "${SOCATBIN}" TCP6-L:${PORT},fork,ipv6only=1,su=nobody TCP4:127.0.0.1:${PORT} &</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">done</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"># UDP Ports</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">for PORT in $UDPPORTS; do</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> nohup "${SOCATBIN}" UDP6-L:${PORT},fork,ipv6only=1,su=nobody UDP4:127.0.0.1:${PORT} &</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">done</div></li> </ol></div> </div> <div class="pre-info pre-footer"> <div class="row-fluid"> <div class="span6"> Posted by Anonymous at 01 Jun 2015, 00:06:31 UTC </div> <div class="span6 align-right"> Language: text • Views: 9 </div> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12"> <h4> <i class="icon-comment icon-blue"></i> Comments </h4> <form method="POST" action="https://paste.kde.org/comment" accept-charset="UTF-8" role="form" data-navigate="ajax"><input name="_token" type="hidden" value="6j5IxSH3sviCR1UDTNJex4Iim01Qco6s8exuBADK"> <div class="control-group"> <textarea class="input-stretch" rows="2" name="comment" cols="50"></textarea> </div> <div class="control-group"> <input name="_submit" class="btn btn-primary" type="submit" value="Submit"> </div> <input name="id" type="hidden" value="17913749"> </form> </div> </div> </section> <footer class="align-center"> <p>KDE® and K Desktop Environment® are registered trademarks of <a href="http://ev.kde.org">KDE e.V.</a></p> <!-- Do not the following copyright notice to avoid copyright violation. See http://opensource.org/licenses/BSD-2-Clause for details --> <!-- You may however choose to remove the hyperlinks and retain the copyright as plain text --> <p><a href="http://sayakbanerjee.com/sticky-notes">Sticky Notes</a> © 2014 <a href="http://sayakbanerjee.com">Sayak Banerjee</a>.</p> <!-- Honeypot, do not click! --> <a href="http://www.ssdfreaks.com/household.php?to=857"><!-- agreement --></a> </footer> </div> </body> </html>
#!/bin/sh #SOCATBIN="/usr/bin/socat" SOCATBIN="/storage/.kodi/addons/tools.socat/bin/socat" TCPPORTS="9981 9982" UDPPORTS="9777" # TCP Ports for PORT in $TCPPORTS; do nohup "${SOCATBIN}" TCP6-L:${PORT},fork,ipv6only=1,su=nobody TCP4:127.0.0.1:${PORT} & done # UDP Ports for PORT in $UDPPORTS; do nohup "${SOCATBIN}" UDP6-L:${PORT},fork,ipv6only=1,su=nobody UDP4:127.0.0.1:${PORT} & done
<!DOCTYPE html>
#!/bin/sh
<html lang="en"> <head>
#SOCATBIN="/usr/bin/socat"
<meta charset="utf-8">
SOCATBIN="/storage/.kodi/addons/tools.socat/bin/socat"
<meta name="viewport" content="width=device-width, initial-scale=1">
TCPPORTS="9981 9982"
<title>KDE Paste</title> <link rel="alternate" type="application/rss+xml" title="RSS" href="https://paste.kde.org/feed" />
UDPPORTS="9777" # TCP Ports
<link href="//cdn.kde.org/img/favicon.ico" rel="shortcut icon" /> <link href="//cdn.kde.org/css/bootstrap.css" rel="stylesheet" />
for PORT in $TCPPORTS; do
<link href="//cdn.kde.org/css/bootstrap-responsive.css" rel="stylesheet" />
nohup "${SOCATBIN}" TCP6-L:${PORT},fork,ipv6only=1,su=nobody TCP4:127.0.0.1:${PORT} &
<link href="//cdn.kde.org/css/bootstrap-stickynotes.css" rel="stylesheet" />
done
<script type="text/javascript" src="//cdn.kde.org/js/jquery.js"></script> <script type="text/javascript" src="//cdn.kde.org/js/jquery.cookie.js"></script> <script type="text/javascript" src="//cdn.kde.org/js/jquery.scrollto.js"></script> <script type="text/javascript" src="//cdn.kde.org/js/bootstrap.js"></script> <script type="text/javascript" src="//www.google.com/jsapi"></script> <script type="text/javascript" src="https://paste.kde.org/assets/neverland/js/stickynotes.js"></script>
# UDP Ports
<script type="text/javascript"> var ajaxUrl = "https://paste.kde.org/ajax"; var ajaxNav = false; </script> </head> <body data-toggle="ajax" data-context="ShowController"> <div class="loader"> <span class="well well-small well-white well-loader"> <i class="icon-time icon-blue"></i> Loading
for PORT in $UDPPORTS; do
</span> </div> <header class="navbar navbar-static-top Neverland" role="navigation"> <div class="navbar-inner"> <div class="container"> <div class="navbar-header"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="https://paste.kde.org"> <img src="//cdn.kde.org/img/logo.plain.small.png"> KDE Paste </a> </div> <div class="nav-collapse"> <ul class="nav nav-navbar pull-right"> <li ><a href="https://paste.kde.org/all"><i class="icon-list"></i> Archives</a></li><li ><a href="https://paste.kde.org/trending"><i class="icon-fire"></i> Trending</a></li><li ><a href="https://paste.kde.org/docs"><i class="icon-book"></i> Docs</a></li><li ><a href="https://paste.kde.org/user/login"><i class="icon-user"></i> Login</a></li> </ul> </div> </div> </div> </header> <div class="container"> <section id="show"> <div class="row-fluid"> <div class="span12"> <div class="pre-info pre-header"> <div class="row-fluid"> <div class="span5"> <h4> ipv6enabler.sh </h4> </div> <div class="span7 align-right"> <a href="#" class="btn btn-success" data-toggle="ajax" data-component="shorten" data-extra="pssfexula">Get short URL</a> <a href="#" class="btn btn-success" data-toggle="wrap">Wrap</a> <a href="https://paste.kde.org/pssfexula/hbrhj8/raw" class="btn btn-success">Raw</a> <a href="https://paste.kde.org/rev/pssfexula" class="btn btn-success">Revise</a> <a href="mailto:?subject=KDE+Paste%3A+https%3A%2F%2Fpaste.kde.org%2Fpssfexula%2Fhbrhj8%2Fra" class="btn btn-warning" data-toggle="tooltip" title="Share"><i class="icon icon-envelope icon-white"></i></a> </div> </div> </div> <div class="well well-small well-white pre"> <div class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">#!/bin/sh</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">#SOCATBIN="/usr/bin/socat"</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">SOCATBIN="/storage/.kodi/addons/tools.socat/bin/socat"</div></li> <li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">TCPPORTS="9981 9982"</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">UDPPORTS="9777"</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"># TCP Ports</div></li> <li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">for PORT in $TCPPORTS; do</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> nohup "${SOCATBIN}" TCP6-L:${PORT},fork,ipv6only=1,su=nobody TCP4:127.0.0.1:${PORT} &</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">done</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"># UDP Ports</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> </div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">for PORT in $UDPPORTS; do</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle"> nohup "${SOCATBIN}" UDP6-L:${PORT},fork,ipv6only=1,su=nobody UDP4:127.0.0.1:${PORT} &</div></li> <li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;vertical-align: middle">done</div></li> </ol></div> </div> <div class="pre-info pre-footer"> <div class="row-fluid"> <div class="span6"> Posted by Anonymous at 01 Jun 2015, 00:06:31 UTC </div> <div class="span6 align-right"> Language: text • Views: 9 </div> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12"> <h4> <i class="icon-comment icon-blue"></i> Comments </h4> <form method="POST" action="https://paste.kde.org/comment" accept-charset="UTF-8" role="form" data-navigate="ajax"><input name="_token" type="hidden" value="6j5IxSH3sviCR1UDTNJex4Iim01Qco6s8exuBADK"> <div class="control-group"> <textarea class="input-stretch" rows="2" name="comment" cols="50"></textarea> </div> <div class="control-group"> <input name="_submit" class="btn btn-primary" type="submit" value="Submit"> </div> <input name="id" type="hidden" value="17913749"> </form> </div> </div> </section> <footer class="align-center"> <p>KDE® and K Desktop Environment® are registered trademarks of <a href="http://ev.kde.org">KDE e.V.</a></p> <!-- Do not the following copyright notice to avoid copyright violation. See http://opensource.org/licenses/BSD-2-Clause for details --> <!-- You may however choose to remove the hyperlinks and retain the copyright as plain text --> <p><a href="http://sayakbanerjee.com/sticky-notes">Sticky Notes</a> © 2014 <a href="http://sayakbanerjee.com">Sayak Banerjee</a>.</p> <!-- Honeypot, do not click! --> <a href="http://www.ssdfreaks.com/household.php?to=857"><!-- agreement --></a> </footer> </div> </body> </html>
nohup "${SOCATBIN}" UDP6-L:${PORT},fork,ipv6only=1,su=nobody UDP4:127.0.0.1:${PORT} &
done
Continue