网络安全最全Suricata-7(1),网络安全基础72问

本人从事网路安全工作12年,曾在2个大厂工作过,安全服务、售后服务、售前、攻防比赛、安全讲师、销售经理等职位都做过,对这个行业了解比较全面。

最近遍览了各种网络安全类的文章,内容参差不齐,其中不伐有大佬倾力教学,也有各种不良机构浑水摸鱼,在收到几条私信,发现大家对一套完整的系统的网络安全从学习路线到学习资料,甚至是工具有着不小的需求。

最后,我将这部分内容融会贯通成了一套282G的网络安全资料包,所有类目条理清晰,知识点层层递进,需要的小伙伴可以点击下方小卡片领取哦!下面就开始进入正题,如何从一个萌新一步一步进入网络安全行业。

学习路线图

其中最为瞩目也是最为基础的就是网络安全学习路线图,这里我给大家分享一份打磨了3个月,已经更新到4.0版本的网络安全学习路线图。

相比起繁琐的文字,还是生动的视频教程更加适合零基础的同学们学习,这里也是整理了一份与上述学习路线一一对应的网络安全视频教程。

网络安全工具箱

当然,当你入门之后,仅仅是视频教程已经不能满足你的需求了,你肯定需要学习各种工具的使用以及大量的实战项目,这里也分享一份我自己整理的网络安全入门工具以及使用教程和实战。

项目实战

最后就是项目实战,这里带来的是SRC资料&HW资料,毕竟实战是检验真理的唯一标准嘛~

面试题

归根结底,我们的最终目的都是为了就业,所以这份结合了多位朋友的亲身经验打磨的面试题合集你绝对不能错过!

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化资料的朋友,可以点击这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

Flow结构体如下:

/\*\*
 \* \brief Flow data structure.
 \*
 \* The flow is a global data structure that is created for new packets of a
 \* flow and then looked up for the following packets of a flow.
 \*
 \* Locking
 \*
 \* The flow is updated/used by multiple packets at the same time. This is why
 \* there is a flow-mutex. It's a mutex and not a spinlock because some
 \* operations on the flow can be quite expensive, thus spinning would be
 \* too expensive.
 \*
 \* The flow "header" (addresses, ports, proto, recursion level) are static
 \* after the initialization and remain read-only throughout the entire live
 \* of a flow. This is why we can access those without protection of the lock.
 \* 
 Flow的结构体,用于表示流数据的结构。这个结构体的各个成员的含义:

这个结构体定义了用于表示网络数据流的各种属性和状态信息,包括地址、端口、协议类型、超时信息、线程信息、锁信息、协议特定数据指针等。
 \*/

typedef struct Flow\_
{
    /\* flow "header", used for hashing and flow lookup. Static after init,
 \* so safe to look at without lock \*/
    FlowAddress src, dst; /\*表示流的源地址和目的地址。\*/

/\* sp,dp:表示源端口和目的端口。\*/
    union {
        Port sp;        /\*\*< tcp/udp source port \*/
        struct {
            uint8\_t type;   /\*\*< icmp type \*/
            uint8\_t code;   /\*\*< icmp code \*/
        } icmp_s;

        struct {
            uint32\_t spi; /\*\*< esp spi \*/
        } esp;
    };
    union {
        Port dp;        /\*\*< tcp/udp destination port \*/
        struct {
            uint8\_t type;   /\*\*< icmp type \*/
            uint8\_t code;   /\*\*< icmp code \*/
        } icmp_d;
    };
    uint8\_t proto; /\*表示协议类型。\*/
    uint8\_t recursion_level;/\*表示递归级别。 \*/
    uint16\_t vlan_id[VLAN_MAX_LAYERS]; /\* 表示 VLAN ID 和 VLAN 索引。\*/

    uint8\_t vlan_idx;

    /\* track toserver/toclient flow timeout needs 
 ffr\_ts、ffr\_tc、ffr
用于跟踪流的超时需求。
\*/
    union {
        struct {
            uint8\_t ffr_ts:4;
            uint8\_t ffr_tc:4;
        };
        uint8\_t ffr;
    };

    /\*\* timestamp in seconds of the moment this flow will timeout
 \* according to the timeout policy. Does \*not\* take emergency
 \* mode into account.
timeout\_at:表示流的超时时间戳。
 \*/
    uint32\_t timeout_at; 

    /\*\* Thread ID for the stream/detect portion of this flow
thread\_id:用于存储流的线程 ID。
\*/
    FlowThreadId thread_id[2];

    struct Flow\_ \*next; /\* (hash) list next 指向下一个流的指针。 \*/
    /\*\* Incoming interface 
livedev:表示流的输入接口。
\*/
    struct LiveDevice\_ \*livedev;

    /\*\* flow hash - the flow hash before hash table size mod.
flow\_hash:表示流的哈希值。
 \*/
    uint32\_t flow_hash;

    /\*\* timeout policy value in seconds to add to the lastts.tv\_sec
 \* when a packet has been received.
timeout\_policy:表示超时策略的数值。
\*/
    uint32\_t timeout_policy;

    /\* time stamp of last update (last packet). Set/updated under the
 \* flow and flow hash row locks, safe to read under either the
 \* flow lock or flow hash row lock. 
lastts:表示流的最后更新时间戳。
\*/
    SCTime_t lastts;

/\* flow\_state:表示流的状态类型。\*/
    FlowStateType flow_state;

    /\*\* flow tenant id, used to setup flow timeout and stream pseudo
 \* packets with the correct tenant id set 
tenant\_id:表示租户 ID。
\*/
    uint32\_t tenant_id;

	/\*
 probing\_parser\_toserver\_alproto\_masks、probing\_parser\_toclient\_alproto\_masks:用于探测解析器的掩码。
 \*/
    uint32\_t probing_parser_toserver_alproto_masks;
    uint32\_t probing_parser_toclient_alproto_masks;

    uint32\_t flags;         /\*\*< generic flags flags:表示流的通用标志。\*/

    uint16\_t file_flags;    /\*\*< file tracking/extraction flags file\_flags:表示文件跟踪/提取标志。\*/

    /\*\* destination port to be used in protocol detection. This is meant
 \* for use with STARTTLS and HTTP CONNECT detection 
protodetect\_dp:用于协议检测的目的端口。
 \*/
    uint16\_t protodetect_dp; /\*\*< 0 if not used \*/

    /\* Parent flow id for protocol like ftp 
 parent\_id:表示协议的父流 ID。
 \*/
    int64\_t parent_id;

/\*
r、m:用于流锁的读写锁或互斥锁。
\*/
#ifdef FLOWLOCK\_RWLOCK
    SCRWLock r;
#elif defined FLOWLOCK\_MUTEX
    SCMutex m;
#else
    #error Enable FLOWLOCK\_RWLOCK or FLOWLOCK\_MUTEX
#endif

    /\*\* protocol specific data pointer, e.g. for TcpSession 
 protoctx:指向协议特定数据的指针。
 \*/
    void \*protoctx;

    /\*\* mapping to Flow's protocol specific protocols for timeouts
 and state and free functions. 
 protomap:用于超时和状态函数的协议映射。
 \*/
    uint8\_t protomap;

	/\* flow\_end\_flags:流结束标志。\*/
    uint8\_t flow_end_flags;
    /\* coccinelle: Flow:flow\_end\_flags:FLOW\_END\_FLAG\_ \*/

	/\*alproto、alproto\_ts、alproto\_tc、alproto\_orig、alproto\_expect:表示应用层协议类型。\*/
    AppProto alproto; /\*\*< \brief application level protocol \*/
    AppProto alproto_ts;
    AppProto alproto_tc;

    /\*\* original application level protocol. Used to indicate the previous
 protocol when changing to another protocol , e.g. with STARTTLS. 
 alproto\_orig:这是一个枚举类型的变量,用于表示原始的应用层协议。当协议发生更改时,例如通过使用STARTTLS进行加密通信,该变量用于指示之前使用的协议。

 alproto\_expect:这是一个枚举类型的变量,用于表示预期的应用层协议。它在处理协议更改或升级的情况下很有用,例如在使用STARTTLS进行加密通信后,它可以指定在更改或升级后预期使用的协议。
 \*/
    AppProto alproto_orig;
    /\*\* expected app protocol: used in protocol change/upgrade like in


**先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7**

**深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!**

**因此收集整理了一份《2024年最新网络安全全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。**
![img](https://img-blog.csdnimg.cn/img_convert/92c89c53be01a3aac28d7963b1e731dd.png)
![img](https://img-blog.csdnimg.cn/img_convert/1a0a4404b3d7489f115ffd3c6c269f4d.png)
![img](https://img-blog.csdnimg.cn/img_convert/81485feb981b158a36030206b708c5cd.png)
![img](https://img-blog.csdnimg.cn/img_convert/086ba108b5068cf06ce40ed5505250ba.png)
![img](https://img-blog.csdnimg.cn/img_convert/1a48ea3f588b0f1ed872cc54bd32573e.png)
![img](https://img-blog.csdnimg.cn/img_convert/762bab1ed0d0a53c7e6363d7168916be.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上网络安全知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化资料的朋友,可以点击这里获取](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**

715690275627)]

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上网络安全知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化资料的朋友,可以点击这里获取](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值