Hi all!
I try to create rule by iptables. Command successfully run, but that rule not show in list.
# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
when i check iptables list by iptables -L command. doen't have any entry. Anybody know how to solve this problem.
Thanks
Majid
Iptables not create rules
to check the command you've applied in iptables you'll apply this command
Code: Select all
# iptables -t nat -L OR iptables -t nat -nvL
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear majidnazeer,
Salam,
When you are tying to see tables rules. You need to specify it by using -t tables-name. However by default iptables do have only three tables.
You should always look into iptables documentation.
FYI, http://www.netfilter.org/documentation/
Best Regards.
Salam,
When you are tying to see tables rules. You need to specify it by using -t tables-name. However by default iptables do have only three tables.
Code: Select all
1. nat
2. mangle
3. filter
You should always look into iptables documentation.
FYI, http://www.netfilter.org/documentation/
Best Regards.
Farrukh Ahmed
-
- Naik
- Posts: 60
- Joined: Wed Oct 05, 2005 12:37 pm
Iptables not create rules
Dear Farrukh!
EID MUBARAK
I use switch L for checking iptables rule. I use this command.
# iptables -L then enter
There don't have any rule mention, whenever i successfully run below command at prompt.
# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
When i open firewall. iptables show rules on list. Why???????
Thanks
EID MUBARAK
I use switch L for checking iptables rule. I use this command.
# iptables -L then enter
There don't have any rule mention, whenever i successfully run below command at prompt.
# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
When i open firewall. iptables show rules on list. Why???????
Thanks
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear majidnazeer,
Salam,
As i have told you in my last reply that you need to specify -t.
# iptables -t nat -L -n --line
Best Regards.
Salam,
As i have told you in my last reply that you need to specify -t.
# iptables -t nat -L -n --line
Best Regards.
Farrukh Ahmed
Linux is not much difficult you can start learning it from your own home just install it and also u have internet and google.com is your best friend
and http://linuxpakistan.net ans http://sysadminsline.com are your very best friends
and http://linuxpakistan.net ans http://sysadminsline.com are your very best friends
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear A Ahmed,
Salam,
I would like to prefer you to go through following links.
http://www.linuxhomenetworking.com
http://www.tldp.org
Best Regards.
Salam,
A Ahmed wrote:Dear Sir i am new in linux. i want to learn about linux for saving money who i give that person who solve my problem plz tell me any way where i study and knowledged about linux.
I would like to prefer you to go through following links.
http://www.linuxhomenetworking.com
http://www.tldp.org
Best Regards.
Farrukh Ahmed
Who is online
Users browsing this forum: No registered users and 1 guest