- Posts: 1302
- Thank you received: 0
Re-direction problems in IPCOP
18 years 4 months ago #15664
by DaLight
Replied by DaLight on topic Re: Re-direction problems in IPCOP
Sorry facer, I forgot to include the line that defines the variables.
[code:1]. /var/ipcop/ethernet/settings[/code:1]
I know that you've manually entered the "eth0" and "eth1" settings. But if you're not absolutely sure which is RED and which is GREEN, you can simply insert the above code in the script and reinsert the variable names. So /etc/rc.d/rc.local file should now look like this:
[code:1]
#!/bin/sh
. /var/ipcop/ethernet/settings
# Flush Custom Input Rules
/sbin/iptables -F CUSTOMINPUT
/sbin/iptables -F CUSTOMFORWARD
#bar access for all IPs
/sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -s 0/0 -o $RED_DEV -j DROP
[/code:1]
[code:1]. /var/ipcop/ethernet/settings[/code:1]
I know that you've manually entered the "eth0" and "eth1" settings. But if you're not absolutely sure which is RED and which is GREEN, you can simply insert the above code in the script and reinsert the variable names. So /etc/rc.d/rc.local file should now look like this:
[code:1]
#!/bin/sh
. /var/ipcop/ethernet/settings
# Flush Custom Input Rules
/sbin/iptables -F CUSTOMINPUT
/sbin/iptables -F CUSTOMFORWARD
#bar access for all IPs
/sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -s 0/0 -o $RED_DEV -j DROP
[/code:1]
18 years 4 months ago #15673
by facer
Replied by facer on topic Re: Re-direction problems in IPCOP
I do know which is which, but i have inserted that line and used the veriables insted.
My /etc/rc.d/rc.local file now looks exactly the same as the code you posted above, but it is still sending ip requests out to the external proxy.
Any ideas what might be wrong?
My /etc/rc.d/rc.local file now looks exactly the same as the code you posted above, but it is still sending ip requests out to the external proxy.
Any ideas what might be wrong?
18 years 4 months ago #15674
by DaLight
Replied by DaLight on topic Re: Re-direction problems in IPCOP
The changes will still cause the external proxy error page to come up, but should prevent the link on the error page from working. If it does not would you be able to post the html of the error page as well the output of the "iptables -L" command (run from the command prompt of your IPCOP).
18 years 4 months ago #15677
by facer
Replied by facer on topic Re: Re-direction problems in IPCOP
18 years 4 months ago #15678
by DaLight
Replied by DaLight on topic Re: Re-direction problems in IPCOP
You mentioned in a previous post that it took you to the banned page when you clicked on the [
191.168.0.3:81/redirect.cgi
] link. From your last post it seems that this is now being blocked. I thought that was your original intention. I don't think you can prevent the initial external proxy error page coming up as you have specified an external proxy in your IPCOP settings.
BTW, have you got any proxies set up in in Internet Explorer?
BTW, have you got any proxies set up in in Internet Explorer?
18 years 4 months ago #15679
by facer
Replied by facer on topic Re: Re-direction problems in IPCOP
Sorry i think we got our wires crossed a bit (my fault for not properly descirbing the problem!)
By the banned page i mean the one i have a screen shot of in my last post.
Yes i have the ipcop ip adrress set in internet explorer as my proxy.
By the banned page i mean the one i have a screen shot of in my last post.
Yes i have the ipcop ip adrress set in internet explorer as my proxy.
Time to create page: 0.146 seconds