iptables help

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Bman69
DD-WRT Novice


Joined: 23 Dec 2006
Posts: 14

PostPosted: Fri Feb 23, 2007 18:58    Post subject: iptables help Reply with quote
Ok i need to open a port to my WAN but I cant seem to get it to work, ill try to explain this best i can.

vlan1 Link encap:Ethernet HWaddr ********
inet addr:71.194.*.* Bcast:71.194.*.* Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79413 errors:0 dropped:0 overruns:0 frame:0
TX packets:1893 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5608796 (5.3 MiB) TX bytes:256898 (250.8 KiB)

vlan1:0 Link encap:Ethernet HWaddr ********
inet addr:192.168.100.10 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

ok i need to somehow open port 69 (tftp) to that ip 192.168.100.10 so i can get tftp files from outside my network, right now i can currently get them buy using 192.168.1.1 on my lan and it will download the files, but i cannot get them by using my ip address and i'm not exactly sure what to try so nay help would be great
Sponsor
Bman69
DD-WRT Novice


Joined: 23 Dec 2006
Posts: 14

PostPosted: Fri Feb 23, 2007 20:38    Post subject: Reply with quote
well after tinkering around a bit with iptables i found that this command works for me
iptables -t nat -R PREROUTING 1 -p udp -d $(nvram get wan_ipaddr) --dport 69 -j DNAT --to 192.168.100.10:69

so anyway this site has great help
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum