Skip to content

Instantly share code, notes, and snippets.

View Fashaun's full-sized avatar

Shaun Lin Fashaun

  • Moxa
  • Taipei, Taiwan
  • 15:26 (UTC +08:00)
View GitHub Profile
@Fashaun
Fashaun / _example_ng-file-upload.md
Created October 28, 2018 09:51 — forked from aksakalli/_example_ng-file-upload.md
ng-file-upload example with NodeJS

ng-file-upload example with NodeJS

index.html should be in public folder in the same directory with app.js.

@Fashaun
Fashaun / gist:9c02b16109b6adb841fe7948aeb76477
Created June 25, 2018 06:27 — forked from windwiny/gist:c85dd8c2571b4374f874
Linux 基于策略的路由(Linux Policy Routing)(Linux 多个网卡使用相同网段的IP地址设置)
----
Linux 基于策略的路由(Linux Policy Routing)
Linux 有传统的基于数据包目的地址的路由算法,和新的基于策略的路由算法
新算法优点:支持多个路由表,支持按数据报属性(源地址、目的地址、协议、端口、数据包大小、内容等)选择不同路由表
# 查看规则命令,后面可跟其它参数,默认为 show(list) 显示全部
ip rule
@Fashaun
Fashaun / Netfilter-IPTables-Diagrams.md
Created June 4, 2018 10:26 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.