Total Pageviews

Monday 24 June 2019

vpn程序-Netstack


Netstack is a network stack written in Go.

Getting started

Try it out on Linux by installing the tun_tcp_echo demo:
go install github.com/google/netstack/tcpip/sample/tun_tcp_echo
Create a TUN device with:
[sudo] ip tuntap add user  mode tun 
[sudo] ip link set  up
[sudo] ip addr add / dev 
Then run with:
tun_tcp_echo   
from https://github.com/google/netstack
-------
https://github.com/inetaf/netstack 
--------
Custom network stack in Go.

This networkstack implements (very) basic and rudimentary support for connecting tcp streams. There needs to be a lot to be implemented and optimised.

Projects

Currently netstack is being used by the following projects:

Configuration

Linux will send RST packets for unknown tcp packets, so this needs to be disabled using iptables.

iptables -A OUTPUT -p tcp --tcp-flags RST RST -j DROP
iptables -I OUTPUT -p icmp --icmp-type destination-unreachable -j DROP

Samples

See samples folder.

References


from https://github.com/dutchcoders/netstack

No comments:

Post a Comment