Day: March 4, 2015

  • Linux IPTables: Incoming and Outgoing Rule Examples

    Default Chain Policy

    As you notice below, it says “(policy ACCEPT)” next to all the three chain names (INPUT, OUTPUT, and FORWARD). This indicates that the default chain policy is ACCEPT.

    # iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    ACCEPT tcp — anywhere anywhere tcp dpt:ssh
    DROP all — anywhere anywhere

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    So, you have two options here. (more…)

  • 今日不宜吃饭

    把久未使用的笔记本电脑拆开丢掉,一共三十五颗螺丝钉,三块硅胶,八块导电垫片,两根antenna,两根转轴,两个speaker,两条ddr2 pc4200 ram,一块flash drive,一粒lithium cell,一块modem,唯一不变的是modem,所有的笔记本电脑里面看起来都一样。

    在鹏城的时候Macbookair的keyboard撒了点cola进去,于是有几个键,就直接,糊糊的stick住了…cola的含糖量比我想象的要高,本来想自己换keyboard,拆开底盘发现我只买了最外面那号螺丝刀,里面的大小不一样,只好送修,好在修回来的keyboard手感不错,确是原装,但touchpad貌似松动了,很可能是touchpad下面有什么垫片之类的没有装上。

    中午在食堂吃饭的时候居然没有米饭了,我只好吃了一盘苦瓜炒鸡蛋和一碗皮蛋瘦肉粥。晚上吃饺子的时候新来的服务员半天也没搞清楚我点的是蚝油生菜还是白灼生菜,今日不宜吃饭。