Redian新闻
>
tomato 如何自定义 firewall?
avatar
tomato 如何自定义 firewall?# Hardware - 计算机硬件
b*3
1
奇葩女是跟我一起工作的一个同事,我们俩都在这边打工,她工作时间比我长,所
以经济上比我宽裕一些。但是我实在受不了她一些抠门的坏毛病。本来两个人一起合租
房,按说房租也应该是AA,可每次快到交房日她就自动忽略掉。然后到了房东忍无可忍
的时候她才被迫不情愿的交出房租,害的房东差点要赶我们走。其实之前,我就帮她垫
付过一次房租。那次是她出差了,在房东的再三催促下,我就把她的房租也一起交了。
可没想到我回头跟她说这个的时候,她总是不提还钱的事儿。所以后来干脆我就不管她
了,她不交,我也不交。两人住在一起,难免有些生活上琐碎的小东西就会分不太清。
家里用的一些东西,大到家具,小到卫生纸几乎都是我买的,可以说除了她自己房间的
东西是她自己买的,剩下的东西大部分都是我花钱买的。有时候我会故意开玩笑说,这
些东西都是我买的,用了得付钱哦。她就马上来一句:你可真抠啊,这点事情还跟我斤
斤计较。我去,到底是谁抠门啊。最烦这种反客为主自以为是的人了,我给你用是我对
你的情分,我不让你用自己也没错。哎,遇上这种奇葩我也是够了,有时候真想离她远
远的。现在房子还有半年到期,我已经打算好等房子到期我就搬出去。再也不想跟这种
奇葩抠门的人住一起了。
avatar
r*t
2
我在 Administration -> Scripts -> Firewall 里面写的东西,save, 重启以后没有
效果啊?
avatar
g*t
3
放到其他地方试一下。
avatar
d*3
4
你确定你东西写的对不?
avatar
r*t
5
I verify by manually entering it after boot and it works.
It is in fact one liner:
iptables -A FORWARD -o vlan2 -j ACCEPT
The only thing I can think of is that in the script version I don't have '
sleep n' in the beginning, but sleep is fragile...

【在 d*******3 的大作中提到】
: 你确定你东西写的对不?
avatar
r*t
6
for example?

【在 g*******t 的大作中提到】
: 放到其他地方试一下。
avatar
a9
7
firewall好像在wan正常后才会执行。你看看wan正常吗?

【在 r****t 的大作中提到】
: I verify by manually entering it after boot and it works.
: It is in fact one liner:
: iptables -A FORWARD -o vlan2 -j ACCEPT
: The only thing I can think of is that in the script version I don't have '
: sleep n' in the beginning, but sleep is fragile...

avatar
d*3
8
我觉得可能是你别的地方没设置好?你可以ssh到router里看看这个rule有没有在
iptables里,如果在的话那就肯定是其他地方没设置好了

【在 r****t 的大作中提到】
: I verify by manually entering it after boot and it works.
: It is in fact one liner:
: iptables -A FORWARD -o vlan2 -j ACCEPT
: The only thing I can think of is that in the script version I don't have '
: sleep n' in the beginning, but sleep is fragile...

avatar
r*t
9
wan looks normal to me, as once I manually enter the lines in the fire
script, things works as expected...

【在 a9 的大作中提到】
: firewall好像在wan正常后才会执行。你看看wan正常吗?
avatar
r*t
10
I did try, and can verify that this particular setting (set in
Administration->Scripts->firewall text area) didn't survive any reboot, only
those set up in the port forwarding manual do.
The log does not seem to bear any indication that the script is executed
during booting.

【在 d*******3 的大作中提到】
: 我觉得可能是你别的地方没设置好?你可以ssh到router里看看这个rule有没有在
: iptables里,如果在的话那就肯定是其他地方没设置好了

avatar
g*t
11
放到wan up里

【在 r****t 的大作中提到】
: for example?
avatar
G*h
12
偶的地沟油就放在 firewall script 里

【在 g*******t 的大作中提到】
: 放到wan up里
avatar
r*t
13
大哥你是对的,我写的语法都错了,在命令行改对以后 script 里面没有改过来。话说
这 log 也没有个错误信息。。

【在 d*******3 的大作中提到】
: 你确定你东西写的对不?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。