# lanproxy **Repository Path**: hanbo79/lanproxy ## Basic Information - **Project Name**: lanproxy - **Description**: 二层协议转发代理。 使用虚拟网卡对捕获的网络数据进行跨进程,跨主机转发 设计技术: veth(虚拟以太网设备),tun/ap(网络隧道接口) - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2025-01-12 - **Last Updated**: 2025-02-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README https://www.freesion.com/article/1543993728/ modprobe tun /etc/yum.repos.d/nux-misc.repo [nux-misc] name=Nux Misc baseurl=http://li.nux.ro/download/nux/misc/el7/x86_64/ enabled=0 gpgcheck=1 gpgkey=http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro yum --enablerepo=nux-misc install tunctl ip tuntap del dev tap0 mod tap # 删除 tap ip tuntap add dev 709test mod tap or tunctl -t 709test -u root ifconfig 709test 100.1.4.138 netmask 255.255.255.0 promisc mount -t cifs //10.1.4.165/meet_code /root/_sunning_dir/mount2 -o username=Administrator,password=sunning521,vers=2.0 ip tuntap add dev test_if mod tap ifconfig 709test 100.1.4.138 netmask 255.255.255.0 promisc