On Tue, Feb 26, 2002 at 09:32:32AM -0500, JeffreyDamick wrote:
> Sure, the problem i'm seeing is caused because i'm building iptables as 
> a shared object then using that from a little gui test app. 

Just to make that sure (and because there have been some people trying this in
the past): Making iptables a shared object doesn't change any of the GPL
restrictions.  You are still not allowed to use the iptables.so exported
functions from any non-GPL application.

(just ignore the paragraph above if this was not your intent).

> i just basically have a prompt to enter the command line options and then i 
> send that into do_command, and i noticed that i couldnt send a command 
> with different options more than once.. ie:
> -t nat -A PREROUTING -p TCP -i eth1 --destination-port 80 -j REDIRECT 
> --to-ports 8080
> -t nat -A PREROUTING -p TCP -i eth1 --destination-port 443 -j REDIRECT 
> --to-ports 8080

Try piping commands into stdin of "iptables-restore --noflush" and you will
have almost exactly what you want.

Does this help?  Or do you still need it as a shared lib?

> thanks,
> jeff

-- 
Live long and prosper
- Harald Welte / [EMAIL PROTECTED]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Reply via email to