DD-WRT v3.0-r29300M kongac (c) 2016 NewMedia-NET GmbH
Release: 03/27/16
DD-WRT login: root
Password:
==========================================================
___ ___ _ _____ ______ ____ ___
/ _ \/ _ \___| | /| / / _ \/_ __/ _ __|_ / / _ \
/ // / // /___/ |/ |/ / , _/ / / | |/ //_ <_/ // /
/____/____/ |__/|__/_/|_| /_/ |___/____(_)___/
DD-WRT v3.0
http://www.dd-wrt.com
==========================================================
BusyBox v1.24.1 (2016-03-27 01:26:48 CET) built-in shell (ash)
root@DD-WRT:~# sh
BusyBox v1.24.1 (2016-03-27 01:26:48 CET) built-in shell (ash)
root@DD-WRT:~# ash
BusyBox v1.24.1 (2016-03-27 01:26:48 CET) built-in shell (ash)
root@DD-WRT:~# busybox
BusyBox v1.24.1 (2016-03-27 01:26:48 CET) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, adjtimex, arp, arping, ash, awk, basename, bash, blkid, bunzip2,
bzcat, cat, chattr, chgrp, chmod, chown, chroot, clear, cmp, cp, cut,
date, dc, dd, df, dirname, dmesg, dnsdomainname, du, echo, egrep, env,
expr, false, fdisk, fgrep, find, free, fsck, ftpget, ftpput, getopt,
grep, gunzip, gzip, halt, hdparm, head, hexdump, hostname, hwclock, id,
ifconfig, ifdown, ifup, insmod, install, kill, killall, klogd, less,
ln, logger, login, logread, ls, lsattr, lsmod, lsusb, lzcat, md5sum,
mesg, mkdir, mkdosfs, mkfifo, mkfs.vfat, mknod, mkswap, modprobe, more,
mount, mv, nameif, nc, netstat, nice, nohup, nslookup, pidof, ping,
ping6, pivot_root, poweroff, printenv, printf, ps, pwd, reboot, renice,
reset, rm, rmdir, rmmod, route, run-parts, rx, sed, sendmail, seq, sh,
sha1sum, sleep, sort, strings, stty, swapoff, swapon, sync, sysctl,
syslogd, tail, tar, taskset, tee, telnet, telnetd, test, tftp, time,
top, touch, tr, traceroute, traceroute6, true, tty, tune2fs, udhcpc,
umount, uname, uniq, unlzma, unxz, uptime, usleep, uudecode, uuencode,
vconfig, vi, watch, wc, wget, which, whoami, xargs, xzcat, yes, zcat
root@DD-WRT:~# SH
ash: SH: not found
root@DD-WRT:~# ifconfig
br0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11869567 errors:0 dropped:28934 overruns:0 frame:0
TX packets:20043330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:928534634 (885.5 MiB) TX bytes:25902818991 (24.1 GiB)
br0:0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:169.254.255.1 Bcast:169.XXX.XXX.XXX Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24025095 errors:0 dropped:493 overruns:0 frame:0
TX packets:16952201 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:897072629 (855.5 MiB) TX bytes:2768837734 (2.5 GiB)
Interrupt:179 Base address:0x4000
eth0:1 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.2.253 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:179 Base address:0x4000
eth1 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6168246 errors:0 dropped:0 overruns:0 frame:5126990
TX packets:12622684 errors:43 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:525031461 (500.7 MiB) TX bytes:3867387064 (3.6 GiB)
Interrupt:163
eth2 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2160017 errors:0 dropped:0 overruns:0 frame:416585
TX packets:3564760 errors:3185 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:268946539 (256.4 MiB) TX bytes:3739129931 (3.4 GiB)
Interrupt:169
imq0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
-00
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:15499849 errors:0 dropped:0 overruns:0 frame:0
TX packets:15465241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:3037063025 (2.8 GiB) TX bytes:2983042026 (2.7 GiB)
imq1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
-00
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:966357 errors:0 dropped:0 overruns:0 frame:0
TX packets:966892 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:179738762 (171.4 MiB) TX bytes:179776914 (171.4 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:65536 Metric:1
RX packets:137 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19560 (19.1 KiB) TX bytes:19560 (19.1 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:217.XX.XXX.XXX P-t-P:XXX.XX.XX.X Mask:255.255.255.255
UP POINTOPOINT RUNNING MULTICAST MTU:1492 Metric:1
RX packets:19871692 errors:0 dropped:0 overruns:0 frame:0
TX packets:11456921 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:25598767757 (23.8 GiB) TX bytes:873321645 (832.8 MiB)
vlan1 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4108763 errors:0 dropped:0 overruns:0 frame:0
TX packets:5453958 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:377432945 (359.9 MiB) TX bytes:5869382578 (5.4 GiB)
vlan2 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19915136 errors:0 dropped:53 overruns:0 frame:0
TX packets:11498243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25759774032 (23.9 GiB) TX bytes:1126613648 (1.0 GiB)
Which ones my WAN port, Would I use :
ifconfig eth0:1 192.168.3.253 netmask 255.255.255.0
iptables -t nat -I POSTROUTING ! -s $(nvram get lan_ipaddr) -d 192.168.3.0/24 -j SNAT --to 192.168.3.253
as well ? or do i need to change it to
ifconfig br0:1 192.168.3.253 netmask 255.255.255.0
iptables -t nat -I POSTROUTING ! -s $(nvram get lan_ipaddr) -d 192.168.3.0/24 -j SNAT --to 192.168.3.253