LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IPTables err with TRACEROUTE (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-err-with-traceroute-117158/)

hookem1994 11-17-2003 04:17 PM

IPTables err with TRACEROUTE
 
I get a confiuration error when setting up my firewall with IPTables. The lines that are causing the problems are:

# OUTGOING TRACEROUTE
# -------------------
# Commented this out to see if this was the issue 1
iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p udp \
-s $IPADDR --source-port $TRACEROUTE_SRC_PORTS \
--destination-port $TRACEROUTE_DEST_PORTS -j LOG
iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p udp \
-s $IPADDR --source-port $TRACEROUTE_SRC_PORTS \
--destination-port $TRACEROUTE_DEST_PORTS -j ACCEPT

I ended up commenting them out but want to figure out what the underlying issue is. The error states that there is a problem with the UDP --destination-port.

If you need the rest of the file I can post it - its big though.

Thanks in advance.
David
:scratch:

dorian33 11-17-2003 04:58 PM

post the values for all variable (mainly $TRACEROUTE_DEST_PORTS)

hookem1994 11-18-2003 07:50 AM

No entry in code
 
I am using the http://www.linux-firewall-tools.com/...all/index.html tool to configure my iptables - it does not list a variable for the TRACEROUTE_DEST_PORTS or TRACEROUTE_SRC_PORTS. Not sure how I should code these variables.

The TRACEROUTE_DEST_PORTS would vary based on the traceroute inputted and the TRACEROUTE_SRC_PORTS would be either my internal (eth1) or external IP (eth0).

Thanks,
David


All times are GMT -5. The time now is 03:44 PM.