Skip to main content

Forcing proxy on IPCOP

More
17 years 10 months ago #19503 by befree
Replied by befree on topic Re: Forcing proxy on IPCOP

Replace [code:1]/sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -s 0/0 -o $RED_DEV -j DROP[/code:1]
with:
[code:1]/sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -o $RED_DEV -j DROP[/code:1]

Also is your RED interface a modem or a network Card?


Hi,
the red is a network card
More
17 years 9 months ago #19504 by befree
Replied by befree on topic Re: Forcing proxy on IPCOP

Replace [code:1]/sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -s 0/0 -o $RED_DEV -j DROP[/code:1]
with:
[code:1]/sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -o $RED_DEV -j DROP[/code:1]

Also is your RED interface a modem or a network Card?


I made the replace but got this error:

Warning: wierd character in interface '-o' (No aliases, :, ! or *)

I tried to send a PM mail the server respond with a php error.
If you don't mind, I would like to give access to my IPCOP so, if you give me your email I'll send you the access.

Rgds

Robin
More
17 years 9 months ago #19517 by DaLight
Replied by DaLight on topic Re: Forcing proxy on IPCOP
Sorry, my fault, forgot to include the variable definitions.

Add the following after the first line (i.e. "#!/bin/sh")

[code:1]#variables defined therein
. /var/ipcop/ethernet/settings[/code:1]

This reads in the definitions for $GREEN_DEV and $RED_DEV.
More
17 years 9 months ago #19524 by befree
Replied by befree on topic Re: Forcing proxy on IPCOP

Sorry, my fault, forgot to include the variable definitions.

Add the following after the first line (i.e. "#!/bin/sh")

[code:1]#variables defined therein
. /var/ipcop/ethernet/settings[/code:1]

This reads in the definitions for $GREEN_DEV and $RED_DEV.


Thank you very much.
I saw you made the correction by yourself, you are welcome.
I'll try tomorrow with a client and I'll let you know.
Bye for now

Roberto
More
17 years 9 months ago #19540 by befree
Replied by befree on topic Re: Forcing proxy on IPCOP

Sorry, my fault, forgot to include the variable definitions.

Add the following after the first line (i.e. "#!/bin/sh")

[code:1]#variables defined therein
. /var/ipcop/ethernet/settings[/code:1]

This reads in the definitions for $GREEN_DEV and $RED_DEV.



Thank you very much 10000000. It's works great!!!!

Robin
More
17 years 9 months ago #19558 by DaLight
Replied by DaLight on topic Re: Forcing proxy on IPCOP
Glad to hear it worked out OK.
Time to create page: 0.137 seconds