| Home | Register | Members | Search | Links |
![]() |
| Thread Tools | Display Modes |
|
|
|
| |
|
Clifford Kite
Guest
Posts: n/a
|
Mark Richards <(E-Mail Removed)> wrote:
> I am having some difficulty getting POSTROUTING to be recognized > when I compile the 2.4.26 kernel for iptables. > My script works up to the point of the following: > iptables -A POSTROUTING -o eth0 -j MASQUERADE > I get: "no chain/target/match by that name" Try iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE This form worked for me in a firewall-NATing script for PPP called by the script /etc/ppp/ip-up, which is executed by pppd when PPP comes up for IP. The PPP interface that pppd supplies to ip-up was passed as an argument to the firewall-NATing script and used instead of eth0. -- Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13" PPP-Q&A links, downloads: http://ckite.no-ip.net/ /* Speak softly and carry a +6 two-handed sword. */ |
|
|
|
|
|||
|
|||
|
Mark Richards
Guest
Posts: n/a
|
Clifford, Thank you! That passed without an error. I'm now testing to make certain it does what it ought to do ![]() Do you have any idea why the form I used failed? -m- > Try > > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > This form worked for me in a firewall-NATing script for PPP called by > the script /etc/ppp/ip-up, which is executed by pppd when PPP comes up > for IP. The PPP interface that pppd supplies to ip-up was passed as an > argument to the firewall-NATing script and used instead of eth0. > |
|
|
|
|
|||
|
|||
|
KR
Guest
Posts: n/a
|
Mark Richards wrote:
> > Clifford, > > Thank you! That passed without an error. I'm now testing to make > certain it does what it ought to do ![]() > > Do you have any idea why the form I used failed? If you don't specify a table with '-t <table>', iptables defaults to the filter table. The MASQUERADE target only exists in the nat table. |
|
|
|
|
|||
|
|||
|
|
|
| |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nat POSTROUTING chain not traversed during loading? | jarl.at.work@gmail.com | Linux Networking | 0 | 10-31-2008 02:45 PM |
| Packets not traversing the POSTROUTING table? | Eric B. | Linux Networking | 3 | 04-08-2008 08:57 AM |
| icmp type 11 not go via nat POSTROUTING table | bykov.victor@gmail.com | Linux Networking | 3 | 02-02-2006 11:48 PM |
| Looking for iptables applications code (iptables.c) to run some rules to forward packets | tvnaidu@yahoo.com | Linux Networking | 2 | 01-17-2005 05:01 PM |
| iptables "can't initialize iptables table `filter'" | pete | Linux Networking | 1 | 10-10-2003 03:44 AM |
Forum Software Powered by vBulletin®, Copyright Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc. |



Linear Mode

