Recent Questions

متن مرتبط با «wrt iptables syntax» در سایت Recent Questions نوشته شده است

Postfix issue : iptables rules and can't receive email from outside

  • نیلوبلاگ

    My Postfix server was working fine until last days but now, I can't receive emails from outside (I mean with an email of different domain name like gmail for example). I must make notice that I can send email from the server to gmail. From what I have seen, I think that issue may be my iptables rules : # iptables -L Chain INPUT (policy DROP) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT all -- ...

    ادامه مطلب
  • Creating a mail rule programatically or with certain syntax

  • نیلوبلاگ

    I want to create an Outlook mail rule for every company that I deal with so that @xyzcompany.com goes to xyz company folder and @abccompany.com goes to abcompany etc.. without creating a rule for each one. It would have to create folders for new companies that I haven't dealt with. If anyone has any ideas I would be most grateful. Let's block ads! بخوانید...

    ادامه مطلب
  • Adding libpcap librar to openwrt cross compiler

  • نیلوبلاگ

    I spend two days trying to compile my code with header as cross compiler for OpenWrt I am using LinksysWRT54GL, and mipsel architecture. I download the libpcap from OpenWrt and tried to generate the MakeFile using ./configure --prefix=$TOOLCHAIN --build=mipsel-openwrt-linux-gnu --host=mipsel-openwrt-linux-uclibc --with-pcap=null and I got this error when I ran make pcap-usb-linux.o: could not read symbols: File in wrong format collect2: ld retued 1 exit status make: *** [libpcap.so] Error 1 ...

    ادامه مطلب
  • Why can't the gateway redirect back with iptables DNAT?

  • نیلوبلاگ

    I'm struggling to understand a behavior I can't explain in a sample network. Basically I want to be able to switch some of my servers by redirecting to a different server (so that I can point my applications to some database server for example and then switch the database connections to another server without changing the applications). I'm probably going to use something like rinetd for that, but I'm curious why some iptables rules are not working as I would expect. The sample network had 3 ser...

    ادامه مطلب
  • DDWRT - Syntax for Time Parameters in QoS CRON Job

  • نیلوبلاگ

    Please redirect me if I'm posting this question in the wrong place. Background: I'm currently running DD-WRT v3.0-r29519 std (04/25/16) on my TP-Link Archer AC1750. For QoS, I have HTP scheduling set up with a very simple set of rules defined in the DD-WRT GUI at */QoS.asp. I've searched through dozens of DD-WRT forum entries to try and understand this code, per the DD-WRT wiki page 1 17 * * * root /usr/sbin/svqos `nvram get wshaper_downlink` `nvram get wshaper_uplink` `get_wanface` `nvram get ...

    ادامه مطلب
  • How to temporarily disable iptables rule?

  • نیلوبلاگ

    Typically I'm using MikroTik embeded routers, they're basing on Linux so their firewall settings feel pretty much 1:1 the same as iptables, just commands are a bit different but mechanics the same. Some more advance MTK firewall functionality with raw iptables can be achieved using -m extensions - like connection states or comments for example. I can't find disable option in raw iptables. Is there any iptables extension that allows to temporarily disable iptables rules? By temporarily I mean dis...

    ادامه مطلب
  • How to block an ip address without DNS resolution in iptables

  • نیلوبلاگ

    My server is under attacked by exim brute force with a fake ip: 2014-05-31 16:05:09 login authenticator failed for ([my_public_ip]) [178.41.179.50]: 535 Incorrect authentication data (set_id=grey) I have some rules to block the origin 178.41.179.50 ip but no success. I try to block the incoming traffic with fake source with my public ip like this: iptables -A INPUT -i eth0 -s my_public_ip -j DROP But it seem take resolve my public ip to DNS instead.So it does not work. Any help ? Let's blo...

    ادامه مطلب
  • My Iptables block IP range not work

  • نیلوبلاگ

    I'm using httpd service on linux os. My result of iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination DROP tcp -- anywhere anywhere state NEW tcp dpt:http recent: UPDATE seconds: 10 hit_count: 3 name: http_flood side: source tcp -- anywhere anywhere state NEW tcp dpt:http recent: SET name: http_flood side: source DROP all -- 185.103.253.167 anywhere DRO...

    ادامه مطلب
  • Linksys E2000 (dd-wrt) DHCP in AP mode

  • نیلوبلاگ

    I have configured my Linksys E2000 Router as a switch via dd-wrt. Devices connected by LAN: Samsung Smart TV ISP provided IPTV device Cable going to my actual Router (ISP provided, also the DHCP server) WiFi is in AP mode (bridged, with WPA2 security), it should provide access to the inteet over the ISP Router. I have tued DHCP completely off in dd-wrt. Problem is, WiFi works great - for about 5 minutes or until I do an ipconfig /renew, then it crashes (no device can connect, existing device slo...

    ادامه مطلب
  • Show MS Excel Syntax as you type Formula

  • نیلوبلاگ

    I have Office 2013 on my work computer and Office 2016 on my personal computer. On my work computer in Excel 2013 when you type a formula you get the suggested syntax for formulas as you type, but on my personal computer I am not getting this. On my work computer, for example, if I type the SUM formula I will see the suggestion: SUM(number1, [number2], ...) but I won't get this syntax suggestion for my personal computer (all I get is SUM) Is this just the version of Excel that I have on the diff...

    ادامه مطلب
  • OpenWRT - how to convert failsafe mode to normal boot?

  • نیلوبلاگ

    I know that sounds strange. Here's some background: OpenWRT - how to do initial login (ssh) if 192.168.1.1 can't be routed? Essentially, I flashed openWRT and the normal boot mode is broken. I have a working configuration in failsafe mode, as well as a lot of additional configuration that I've done. For whatever reason, when I'm in failsafe mode, my changes persist. If I reboot, it boots the normal mode, which fails and hangs. Status light never changes, Etheet ports never get power (judging by ...

    ادامه مطلب
  • OpenWRT Image Builder failing with building OpenWRT image

  • نیلوبلاگ

    I am on Ubuntu 16.04 creating OpenWRT image by OpenWrt-ImageBuilder-ar71xx-generic.Linux-x86_64.tar.bz2 from https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/. I have all exactly done by https://wiki.openwrt.org/doc/howto/obtain.firmware.generate tutorial but it does not works. make image PROFILE=TLWR541 starts outputting some commands and outputs of some commands but nothing more. After 10 minutes of nothing I pressed Ctrl + C to stop output. All output was root@test:~/owrt/Open...

    ادامه مطلب
  • MySQL insert into table - syntax problems

  • نیلوبلاگ

    $serveame = 'edited'; $useame = 'edited'; $password = 'edited'; $dbname = 'edited'; $name = $_POST ['name']; $email = $_POST ['email']; $number = $_POST ['number']; $manufacturer = $_POST ['manufacturer']; $birth = $_POST ['birth']; // Create connection $conn = new mysqli($serveame, $useame, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; $sql = mysql_query("INSERT INTO hgcasestudy (nam...

    ادامه مطلب
  • How to get DNSMasq to use remote (OpenVPN) DNS on DD-WRT router?

  • نیلوبلاگ

    I have a DD-WRT router with an OpenVPN client. I'm trying to configure the local DNS server on the router to use the DNS server pushed by the OpenVPN server, via the OpenVPN tunnel. Here's what I've got so far: Setup > Basic Setup DHCP Server: Enable Use DNSMasq for DHCP: Checked Use DNSMasq for DNS: Checked Services > Services DNSMasq: Enable Additional DNSMasq options has interface=tun1 and no-dhcp-interface=tun1. However, when I test which DNS my router is using, it's always the ISP's...

    ادامه مطلب
  • DD-WRT - Redirecting internet traffic based on source Subnet

  • نیلوبلاگ

    Following question has a long description. I hope some one in similar position finds it helpful. Please be patient. My problem is at the end. First of all, I have the following setup in home: --MODEM (ADSL) - ISP INTERNET : 192.168.0.1 | -- WIRELESS ROUTER (DDWRT) : 192.168.1.1 I have a L2TP VPN service that I need to use must of the time to access inteet. As DD-WRT dont support L2TP as a VPN Client, I ended up setting it up as the primary WAN connection. Works as expected and my traffic ...

    ادامه مطلب
  • DD-WRT bandwidth divide between 2.4 GHz and 5 GHz band

  • نیلوبلاگ

    I have just flashed DD-WRT firmware in place of my TP-Link Archer C7's stock firmware. I have tued on both bands. I can't use only the 5 GHz band because some devices don't support it. I have 100 Mbps connection. After setting it up, at first, I thought that I was only getting 50 Mbps due to poor connection, etc. But after tuing off 2.4 GHz, I noticed that the WAN bandwidth was dividing between both bands (50 Mbps + 50 Mbps). However on stock firmware, it wasn't the case. How can I make it so th...

    ادامه مطلب
  • Set an OpenWRT as a Dumb AP while running 6in4 tunnel?

  • نیلوبلاگ

    The computer connect to OpenWRT router through LAN port, the router connect to another router using WAN port. So it's like: Computer -> OpenWRT -> Exteal Router(Still in private address setup) What I would like to achieve is disable NAT and firewall for the entire v4 network. (All traffic from the LAN interface of OpenWRT now would be NAT to OpenWRT's WAN address that it got using DHCP) With the involvement of NAT I couldn't initiate connection outside of the router's private subnet. I tri...

    ادامه مطلب
  • Not all subnets in OpenWRT can access internal device via WAN

  • نیلوبلاگ

    On my OpenWRT router I have such interfaces: Lan1, physical interface eth0, IP address 10.10.0.0/16 Lan2, physical interface eth1, IP address 10.11.0.0/16. Wan, physical interface eth2, IP address is provided by ISP and bound to my domain for example www.my-host.com. My zone and forwarding configuration is: Zone => Forwarding Input Output Forward ---------------------------------------------------- lan1 => wan lan2 ACCEPT ACCEPT ACCEPT lan2 => wan lan1 ...

    ادامه مطلب
  • Differences between ip, iptables, ifconfig, ethtool?

  • نیلوبلاگ

    These tools look like they do many similar things. When should I use each one, and what are the differences in their goals? ...

    ادامه مطلب
  • VIM syntax highlighting works in MacVim but not vi on command line?

  • نیلوبلاگ

    When I edit a file with mvim (Installed via MacVim) I see syntax highlighting in colour on a large range of files. However when I edit with the built in vi there is never syntax highlighting. Is there something you need to do? Colour does work with other command line commands, i.e. git, ls etc... The problem is only with vi Im on latest OS X 10.11.5: > vi -version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 5 2016 14:53:37) Let's block ads! بخوانید...

    ادامه مطلب